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:
parent
b1f753ab3f
commit
fc170bc859
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue