From b68b2798d27b2c65796f268ddb4421070fca1be7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 20 May 2003 04:41:36 +0000 Subject: - Fixed a IIS bug with regard to register globals. This also avoids the aforementioned ugly hack. Patch by Moshe. --- includes/common.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 964e14362..82a45b0f5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -98,13 +98,16 @@ function object2array($node) { } function request_uri() { - // since request_uri() is only available on apache, we generate equivalent using other environment vars. + /* + ** Since request_uri() is only available on Apache, we generate + ** equivalent using other environment vars. + */ if (isset($_SERVER["REQUEST_URI"])) { return $_SERVER["REQUEST_URI"]; } else { - return $_SERVER["PATH_INFO"] ."?". $_SERVER["QUERY_STRING"]; + return $_SERVER["PHP_SELF"] ."?". $_SERVER["QUERY_STRING"]; } } -- cgit v1.2.3