Skip to content

Commit 8b3cbf7

Browse files
committed
~ fix route bug -> replacing forward slashes was based on $from value instead of $to part
Signed-off-by: Christoph Potas <christoph286@googlemail.com>
1 parent b510f7d commit 8b3cbf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Router/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ protected function checkRoutes(string $uri): bool
469469
{
470470
$val = preg_replace('#^' . $key . '$#', $val, $uri);
471471
}
472-
elseif (strpos($key, '/') !== false)
472+
elseif (strpos($val, '/') !== false)
473473
{
474474
$val = str_replace('/', '\\', $val);
475475
}

0 commit comments

Comments
 (0)