From 40a7d9d2dd22661ca0a888d76889f304310d275e Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 3 Aug 2005 00:42:52 +0000 Subject: [PATCH] Fixes #1488 git-svn-id: http://svn.automattic.com/wordpress/trunk@2744 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index 99509d574..252918705 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -4,8 +4,8 @@ $REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */ $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */ // Fix for IIS, which doesn't set REQUEST_URI -if (! isset($_SERVER['REQUEST_URI'])) { - $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; +if ( empty( $_SERVER['REQUEST_URI'] ) ) { + $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; // Does this work under CGI? // Append the query string if it exists and isn't null if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {