From f04d76536542aa8f235dffcd6d6c287b6760971c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 17 Apr 2014 20:58:34 +0000 Subject: [PATCH] Fix routing for static content with internal webserver --- 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 66a54e841..2cf7a3155 100644 --- a/library/Icinga/Application/webrouter.php +++ b/library/Icinga/Application/webrouter.php @@ -87,7 +87,7 @@ if (in_array($path, $special)) { $pie->initFromRequest(); echo $pie->render(); -} elseif (file_exists($baseDir . $ruri) && is_file($baseDir . $ruri)) { +} elseif (file_exists($baseDir . '/' . $path) && is_file($baseDir . '/' . $path)) { return false; } else { include __DIR__ . '/Web.php';