Skip to content

Commit 9a4d4ab

Browse files
gr8manpaulbalandan
andauthored
Update system/Router/Router.php
Co-authored-by: John Paul E Balandan <paulbalandan@gmail.com>
1 parent 0d7f7f8 commit 9a4d4ab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎system/Router/Router.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,7 @@ protected function checkRoutes(string $uri): bool
467467
$routeKey = str_replace('{locale}', '[^/]+', $routeKey);
468468
}
469469

470-
// Does the RegEx match?
471-
if (! preg_match('#^' . $routeKey . '$#u', $uri, $matches)) {
470+
if (preg_match('#^' . $routeKey . '$#u', $uri, $matches) !== 1) {
472471
continue;
473472
}
474473
}

0 commit comments

Comments
 (0)