Do not process PATH_INFO if it containts the index.

git-svn-id: https://develop.svn.wordpress.org/trunk@1923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-12-08 22:00:26 +00:00
parent 6a2e9a95c1
commit 22781af5ee
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ $query_vars = array();
if ((isset($_GET['error']) && $_GET['error'] == '404') || if ((isset($_GET['error']) && $_GET['error'] == '404') ||
((! empty($_SERVER['PATH_INFO'])) && ((! empty($_SERVER['PATH_INFO'])) &&
('/' != $_SERVER['PATH_INFO']) && ('/' != $_SERVER['PATH_INFO']) &&
(false === strpos($_SERVER['PATH_INFO'], $_SERVER['PHP_SELF'])) (false === strpos($_SERVER['PATH_INFO'], 'index.php'))
)) { )) {
// If we match a rewrite rule, this will be cleared. // If we match a rewrite rule, this will be cleared.