mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
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']);
|
$baseDir = dirname($_SERVER['SCRIPT_FILENAME']);
|
||||||
|
|
||||||
// Fix aliases
|
// Fix aliases
|
||||||
$remove = dirname($_SERVER['PHP_SELF']);
|
$remove = str_replace('\\', '/', dirname($_SERVER['PHP_SELF']));
|
||||||
if (substr($ruri, 0, strlen($remove)) !== $remove) {
|
if (substr($ruri, 0, strlen($remove)) !== $remove) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user