mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[BUGFIX] Fixed router not loading show method
This commit is contained in:
@@ -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)), '/');
|
||||
|
||||
Reference in New Issue
Block a user