Do not process path info if it contains only "/".

git-svn-id: https://develop.svn.wordpress.org/trunk@1842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-11-02 02:08:17 +00:00
parent 82acac8021
commit feca248c64
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ $query_vars = array();
// Process PATH_INFO and 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.
$error = '404';