From 6a7ce39e7294d1b84441d37dde2a05464d1cfd96 Mon Sep 17 00:00:00 2001 From: mrjk990 Date: Thu, 14 Jan 2021 19:55:48 +0200 Subject: [PATCH] Update Route.php set flag 'u' out of $case_maters to avoid any problem when $case_maters set true --- src/Steampixel/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Steampixel/Route.php b/src/Steampixel/Route.php index bc94adc..ba4bbec 100644 --- a/src/Steampixel/Route.php +++ b/src/Steampixel/Route.php @@ -83,7 +83,7 @@ class Route { $route['expression'] = $route['expression'].'$'; // Check path match - if (preg_match('#'.$route['expression'].'#'.($case_matters ? '' : 'iu'), $path, $matches)) { + if (preg_match('#'.$route['expression'].'#'.($case_matters ? '' : 'i').'u', $path, $matches)) { $path_match_found = true; // Cast allowed method to array if it's not one already, then run through all methods