[BUGFIX] Fixed routeMatch in RouterEntry not matching routes with multiple

arguments.
This commit is contained in:
Simon Sessingø
2015-11-14 22:21:11 +01:00
parent 7c0ac390fd
commit eb93584d85
+1 -1
View File
@@ -44,7 +44,7 @@ class RouterRoute extends RouterEntry {
$route = $this->url;
$routeMatch = preg_replace('/'.self::PARAMETERS_REGEX_MATCH.'/is', '', $route);
$routeMatch = preg_replace('/\/{0,1}'.self::PARAMETERS_REGEX_MATCH.'\/{0,1}/is', '', $route);
// Check if url parameter count matches
if(stripos($url, $routeMatch) === 0) {