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:
Ryan Boren 2006-09-19 03:05:08 +00:00
parent d88ed56d55
commit fd6a645679
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class WP {
$pathinfo = $_SERVER['PATH_INFO'];
$pathinfo_array = explode('?', $pathinfo);
$pathinfo = $pathinfo_array[0];
$pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
$req_uri = $_SERVER['REQUEST_URI'];
$req_uri_array = explode('?', $req_uri);
$req_uri = $req_uri_array[0];