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

4.5.x
Dries Buytaert 2004-10-12 19:50:12 +00:00
parent 8ce9d2aca4
commit 467bc55972
1 changed files with 7 additions and 2 deletions

View File

@ -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);
}