Do not process PATH_INFO if it containts the index.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-12-08 22:00:26 +00:00
parent b1f753ab3f
commit fc170bc859

View File

@ -14,7 +14,7 @@ $query_vars = array();
if ((isset($_GET['error']) && $_GET['error'] == '404') ||
((! empty($_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.