From f75cec459e04c1710d2a03905aa00e2d0f300107 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 17 Oct 2007 13:03:03 +0000 Subject: - Patch #180468 by hass: fixed notice on IIS. --- includes/bootstrap.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index bd076db75..433641755 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -682,9 +682,12 @@ function request_uri() { if (isset($_SERVER['argv'])) { $uri = $_SERVER['SCRIPT_NAME'] .'?'. $_SERVER['argv'][0]; } - else { + elseif (isset($_SERVER['QUERY_STRING'])) { $uri = $_SERVER['SCRIPT_NAME'] .'?'. $_SERVER['QUERY_STRING']; } + else { + $uri = $_SERVER['SCRIPT_NAME']; + } } return $uri; -- cgit v1.2.3