From fd6a645679a48a8212bbee35f0bfa3daf4a50717 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 19 Sep 2006 03:05:08 +0000 Subject: [PATCH] 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 --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 5437ed94e8..55b46a383a 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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];