Merge pull request #582 from skipperbent/v4-group-prefix-bug

Fixed issue causing group prefix to trigger on paths without "/" (issue #573 - thanks @Venloress)
This commit is contained in:
Simon Sessingø
2021-07-18 01:44:57 +02:00
committed by GitHub
+1 -1
View File
@@ -78,7 +78,7 @@ class RouteGroup extends Route implements IGroupRoute
}
/* Skip if prefix doesn't match */
if ($this->prefix !== null && stripos($url, $parsedPrefix) === false) {
if ($this->prefix !== null && stripos($url, rtrim($parsedPrefix, '/') . '/') === false) {
return false;
}