Merge pull request #39 from mrjk990/patch-2

set flag 'u' out of $case_maters to avoid any problem when $case_maters set true
This commit is contained in:
SteamPixel 2021-01-14 20:42:57 +01:00 committed by GitHub
commit 7358af8887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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