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:
westi 2009-02-15 11:16:54 +00:00
parent 788ba1ea2a
commit c43fc53140
1 changed files with 2 additions and 2 deletions

View File

@ -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;