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:
rboren 2004-11-02 02:08:17 +00:00
parent 626a4d0c83
commit ec4cfef503
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';