Merge pull request #28 from skipperbent/development

[BUGFIX] Fixed routeMatch in RouterEntry not matching routes with multiple  arguments.
This commit is contained in:
Simon Sessingø
2015-11-14 22:22:00 +01:00
+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) {