From ff6859d1d1bef05dd2249802b0c6dc3c83560757 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 27 Mar 2014 19:47:11 +0000 Subject: [PATCH] One more router fix --- 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 4f78beca5..ea7dda2db 100644 --- a/library/Icinga/Application/webrouter.php +++ b/library/Icinga/Application/webrouter.php @@ -27,7 +27,7 @@ if (substr($ruri, 0, strlen($remove)) !== $remove) { $ruri = substr($ruri, strlen($remove)); if (strpos($ruri, '?') === false) { $params = ''; - $path = $ruri; + $path = ltrim($ruri, '/'); } else { list($path, $params) = preg_split('/\?/', $ruri, 2); }