Commit b68b2798 authored by Dries's avatar Dries

- Fixed a IIS bug with regard to register globals.  This also avoids the
  aforementioned ugly hack.  Patch by Moshe.
parent a87f442e
......@@ -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"];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment