From a1271f1c895c8ba14e1958ef446820d79d75428b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Wed, 7 Oct 2015 13:26:41 +0200 Subject: [PATCH] [BUGFIX] Fixed router not loading show method --- src/Pecee/SimpleRouter/RouterRessource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/SimpleRouter/RouterRessource.php b/src/Pecee/SimpleRouter/RouterRessource.php index 359617d..5d4d608 100644 --- a/src/Pecee/SimpleRouter/RouterRessource.php +++ b/src/Pecee/SimpleRouter/RouterRessource.php @@ -55,7 +55,7 @@ class RouterRessource extends RouterEntry { $url = parse_url($url); $url = $url['path']; - if(strtolower($url) == strtolower($this->url) || stripos($url, $this->url . '/') === 0) { + if(strtolower($url) == strtolower($this->url) || stripos($url, $this->url) === 0) { $url = rtrim($url, '/'); $strippedUrl = trim(substr($url, strlen($this->url)), '/');