Commit 467bc559 authored by Dries's avatar Dries

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

parent 8ce9d2ac
......@@ -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);
}
......
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