mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 08:41:24 +01:00
Use rawurldecode. fixes #3727
git-svn-id: http://svn.automattic.com/wordpress/trunk@4979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a821445497
commit
bb8331b95d
@ -58,7 +58,7 @@ class WP {
|
|||||||
// front. For path info requests, this leaves us with the requesting
|
// front. For path info requests, this leaves us with the requesting
|
||||||
// filename, if any. For 404 requests, this leaves us with the
|
// filename, if any. For 404 requests, this leaves us with the
|
||||||
// requested permalink.
|
// requested permalink.
|
||||||
$req_uri = str_replace($pathinfo, '', urldecode($req_uri));
|
$req_uri = str_replace($pathinfo, '', rawurldecode($req_uri));
|
||||||
$req_uri = trim($req_uri, '/');
|
$req_uri = trim($req_uri, '/');
|
||||||
$req_uri = preg_replace("|^$home_path|", '', $req_uri);
|
$req_uri = preg_replace("|^$home_path|", '', $req_uri);
|
||||||
$req_uri = trim($req_uri, '/');
|
$req_uri = trim($req_uri, '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user