Commit ad42909e authored by Dries's avatar Dries

- Patch #11434: made request_uri() (and thus forms) work on IIS.

parent ea42a5b7
......@@ -227,7 +227,12 @@ 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);
......
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