decode req uri when processing pathinfo permalinks. Props Kirin_Lin. fixes #3727
git-svn-id: http://svn.automattic.com/wordpress/trunk@4893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a4d57ead4c
commit
2cf3e9ea2f
|
@ -58,7 +58,7 @@ class WP {
|
|||
// front. For path info requests, this leaves us with the requesting
|
||||
// filename, if any. For 404 requests, this leaves us with the
|
||||
// requested permalink.
|
||||
$req_uri = str_replace($pathinfo, '', $req_uri);
|
||||
$req_uri = str_replace($pathinfo, '', urldecode($req_uri));
|
||||
$req_uri = trim($req_uri, '/');
|
||||
$req_uri = preg_replace("|^$home_path|", '', $req_uri);
|
||||
$req_uri = trim($req_uri, '/');
|
||||
|
|
Loading…
Reference in New Issue