We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c65aa1 commit 03ec3ffCopy full SHA for 03ec3ff
system/Router/Router.php
@@ -448,7 +448,7 @@ protected function checkRoutes(string $uri): bool
448
}, is_array($handler) ? key($handler) : $handler);
449
450
throw new RedirectException(
451
- preg_replace('#^' . $routeKey . '$#u', $redirectTo, $uri),
+ preg_replace('#\A' . $routeKey . '\z#u', $redirectTo, $uri),
452
$this->collection->getRedirectCode($routeKey)
453
);
454
}
@@ -502,7 +502,7 @@ protected function checkRoutes(string $uri): bool
502
503
504
// Using back-references
505
- $handler = preg_replace('#^' . $routeKey . '$#u', $handler, $uri);
+ $handler = preg_replace('#\A' . $routeKey . '\z#u', $handler, $uri);
506
507
508
$this->setRequest(explode('/', $handler));
0 commit comments