Do not process path info if it contains only "/".
git-svn-id: http://svn.automattic.com/wordpress/trunk@1842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
626a4d0c83
commit
ec4cfef503
|
@ -12,7 +12,7 @@ $query_vars = array();
|
||||||
|
|
||||||
// Process PATH_INFO and 404.
|
// Process PATH_INFO and 404.
|
||||||
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'])) {
|
||||||
|
|
||||||
// If we match a rewrite rule, this will be cleared.
|
// If we match a rewrite rule, this will be cleared.
|
||||||
$error = '404';
|
$error = '404';
|
||||||
|
|
Loading…
Reference in New Issue