Encode percent to avoid broken permalinks. Props majelbstoat. fixes #569
git-svn-id: https://develop.svn.wordpress.org/trunk@4195 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d88ed56d55
commit
fd6a645679
|
@ -111,7 +111,7 @@ class WP {
|
||||||
|
|
||||||
$pathinfo = $_SERVER['PATH_INFO'];
|
$pathinfo = $_SERVER['PATH_INFO'];
|
||||||
$pathinfo_array = explode('?', $pathinfo);
|
$pathinfo_array = explode('?', $pathinfo);
|
||||||
$pathinfo = $pathinfo_array[0];
|
$pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
|
||||||
$req_uri = $_SERVER['REQUEST_URI'];
|
$req_uri = $_SERVER['REQUEST_URI'];
|
||||||
$req_uri_array = explode('?', $req_uri);
|
$req_uri_array = explode('?', $req_uri);
|
||||||
$req_uri = $req_uri_array[0];
|
$req_uri = $req_uri_array[0];
|
||||||
|
|
Loading…
Reference in New Issue