Windows: Fix webrouter on IIS
Signed-off-by: Alexander A. Klimov <alexander.klimov@netways.de> with the following changes: Remove unneeded whitespace fixes #8914
This commit is contained in:
parent
e8cdcce61d
commit
edd8f5738f
|
@ -31,7 +31,7 @@ $baseDir = $_SERVER['DOCUMENT_ROOT'];
|
|||
$baseDir = dirname($_SERVER['SCRIPT_FILENAME']);
|
||||
|
||||
// Fix aliases
|
||||
$remove = dirname($_SERVER['PHP_SELF']);
|
||||
$remove = str_replace('\\', '/', dirname($_SERVER['PHP_SELF']));
|
||||
if (substr($ruri, 0, strlen($remove)) !== $remove) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue