CMS1.4 - REQUEST_URI in stylesheet.php on IIS does not exist
Posted: Wed Aug 06, 2008 9:40 am
CMS1.4 running on IIS, the file: stylesheet.php requests $_SERVER['REQUEST_URI'] which does not exist in IIS. This writes out the error: which I'm assuming invalidates the CSS content type of the file.
The CMS file: index.php already handles this by checking for, and then setting REQUEST_URI manually. I have managed to fix this problem by just including the same code at the start of stylesheet.php.
Code: Select all
Notice: Undefined index: REQUEST_URI in C:\Web Application Folders\_testing\imani\stylesheet.php on line 4
The CMS file: index.php already handles this by checking for, and then setting REQUEST_URI manually. I have managed to fix this problem by just including the same code at the start of stylesheet.php.
Code: Select all
if (!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING']))
{
$_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'];
}