Strip home path from path info. This prevents a path info value of '/wp/index.php' from being considered as a permalink request. fixes #1938

git-svn-id: https://develop.svn.wordpress.org/trunk@3206 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-23 22:38:25 +00:00
parent 2ebfe35d2d
commit 7226d2f2b3
1 changed files with 2 additions and 1 deletions

View File

@ -1443,6 +1443,7 @@ class WP {
$req_uri = str_replace($pathinfo, '', $req_uri);
$req_uri = str_replace($home_path, '', $req_uri);
$req_uri = trim($req_uri, '/');
$pathinfo = str_replace($home_path, '', $pathinfo);
$pathinfo = trim($pathinfo, '/');
$self = str_replace($home_path, '', $self);
$self = trim($self, '/');