mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Use # as the delimiter for preg_match in rewrite rules to allow them to contain !. Fixes #7486 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
788ba1ea2a
commit
c43fc53140
@ -207,8 +207,8 @@ class WP {
|
||||
$request_match = $req_uri . '/' . $request;
|
||||
}
|
||||
|
||||
if (preg_match("!^$match!", $request_match, $matches) ||
|
||||
preg_match("!^$match!", urldecode($request_match), $matches)) {
|
||||
if (preg_match("#^$match#", $request_match, $matches) ||
|
||||
preg_match("#^$match#", urldecode($request_match), $matches)) {
|
||||
// Got a match.
|
||||
$this->matched_rule = $match;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user