From 6b4ffb78eb0f02707be97f8712eabb99a80599e9 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 25 Sep 2006 02:50:11 +0000 Subject: [PATCH] Encode percent to avoid broken permalinks. Props majelbstoat. fixes #569 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4243 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 d2295126af..f66f138443 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1503,7 +1503,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];