Skip to content

Commit

Permalink
Merge pull request #583 from skipperbent/v4-development
Browse files Browse the repository at this point in the history
Version 4.3.7.2
  • Loading branch information
skipperbent committed Jul 17, 2021
2 parents ee61eda + c2e2d3b commit 032a2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pecee/SimpleRouter/Route/RouteGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function matchRoute(string $url, Request $request): bool
}

/* 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;
}

Expand Down

0 comments on commit 032a2ae

Please sign in to comment.