Author: johnish
Description:
IIS, PHP installed as isapi. $_SERVER['REQUEST_URI'] is not available on this
platform. A workaround for non Apache users should be implemented.
I did the following:
if(!isset($_SERVER['REQUEST_URI'])) {
$urlary = explode("/",$_SERVER['SCRIPT_NAME']);
foreach ($urlary as $index => $value) {
$phppos = strpos($value, ".php"); $htmlpos = strpos($value, ".html"); if (!$phppos === false) { $_SERVER['REQUEST_URI'] = $value; $index = count($urlary);
} elseif (!$htmlpos === false) {
$_SERVER['REQUEST_URI'] = $value; $index = count($urlary);
}
}
}
Version: 1.4.x
Severity: normal
OS: Windows XP
Platform: PC