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:41:26 +02:00
parent 471bbe137f
commit 5dd0690009
+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;
}