Skip to content

Commit efe4f55

Browse files
committed
Fix issue with URL segments killing the pattern.
1 parent 5adb9ff commit efe4f55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ protected function fillRouteParams(string $from, array $params = null): string
975975
{
976976
// Ensure that the param we're inserting matches
977977
// the expected param type.
978-
if (preg_match("/{$pattern}/", $params[$index]))
978+
if (preg_match("|{$pattern}|", $params[$index]))
979979
{
980980
$from = str_replace($pattern, $params[$index], $from);
981981
}

0 commit comments

Comments
 (0)