diff --git a/system/Router/Router.php b/system/Router/Router.php index b865936882fa..953d06a2f8d2 100644 --- a/system/Router/Router.php +++ b/system/Router/Router.php @@ -469,7 +469,7 @@ protected function checkRoutes(string $uri): bool { $val = preg_replace('#^' . $key . '$#', $val, $uri); } - elseif (strpos($key, '/') !== false) + elseif (strpos($val, '/') !== false) { $val = str_replace('/', '\\', $val); }