From 467bc55972e7ef9453fda3f6b3b47c6e2dd66749 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 12 Oct 2004 19:50:12 +0000 Subject: [PATCH] - Patch #11434: made request_uri() (and thus forms) work on IIS. --- includes/bootstrap.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index d0240fa8a5f..593a4c29fd7 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -375,9 +375,14 @@ function request_uri() { $uri = $_SERVER['REQUEST_URI']; } else { - $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['argv'][0]; + if (isset($_SERVER['argv'])) { + $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['argv'][0]; + } + else { + $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['QUERY_STRING']; + } } - + return check_url($uri); }