summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-20 04:41:36 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-20 04:41:36 +0000
commitb68b2798d27b2c65796f268ddb4421070fca1be7 (patch)
tree094f45a483e63ee542102f2d22ab4f610297ab1f
parenta87f442e05bfc2d9cfa0b4d46fa55719223d42b4 (diff)
downloadbrdo-b68b2798d27b2c65796f268ddb4421070fca1be7.tar.gz
brdo-b68b2798d27b2c65796f268ddb4421070fca1be7.tar.bz2
- Fixed a IIS bug with regard to register globals. This also avoids the
aforementioned ugly hack. Patch by Moshe.
-rw-r--r--includes/common.inc7
1 files changed, 5 insertions, 2 deletions
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"];
}
}