mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
decode req uri when processing pathinfo permalinks. Props Kirin_Lin. fixes #3727
git-svn-id: https://develop.svn.wordpress.org/trunk@4893 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
98e9f1ad0a
commit
019c3e4950
@ -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…
x
Reference in New Issue
Block a user