From feca248c64983b6b8b6adcd8b4843644c949e2e9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 2 Nov 2004 02:08:17 +0000 Subject: [PATCH] Do not process path info if it contains only "/". git-svn-id: https://develop.svn.wordpress.org/trunk@1842 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-blog-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index b033a85069..e72e8dc76e 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -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';