From edd8f5738fb66dd9c1a46eef7c162d92dcdea0b1 Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Mon, 30 Mar 2015 22:22:21 +0100 Subject: [PATCH] Windows: Fix webrouter on IIS Signed-off-by: Alexander A. Klimov with the following changes: Remove unneeded whitespace fixes #8914 --- library/Icinga/Application/webrouter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/webrouter.php b/library/Icinga/Application/webrouter.php index 905fa7dca..5a7d1c95c 100644 --- a/library/Icinga/Application/webrouter.php +++ b/library/Icinga/Application/webrouter.php @@ -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; }