From: garvinhicking Date: Fri, 8 Jul 2005 08:41:18 +0000 (+0000) Subject: check undefined index X-Git-Tag: 0.9~337 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a29c69d03fe5d9f39655907e5b0cb37abf47b9e5;p=s9y.git check undefined index --- diff --git a/include/compat.inc.php b/include/compat.inc.php index 2c74ec5..7590ac6 100644 --- a/include/compat.inc.php +++ b/include/compat.inc.php @@ -108,7 +108,7 @@ $serendipity['COOKIE'] = &$_COOKIE['serendipity']; // Attempt to fix IIS compatibility if (empty($_SERVER['REQUEST_URI'])) { - $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING']; + $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . (!empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : ''); } // Some security issues