From a29c69d03fe5d9f39655907e5b0cb37abf47b9e5 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Fri, 8 Jul 2005 08:41:18 +0000 Subject: [PATCH] check undefined index --- include/compat.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5