Update Route.php
set flag 'u' out of $case_maters to avoid any problem when $case_maters set true
This commit is contained in:
parent
66a6bbae95
commit
6a7ce39e72
|
@ -83,7 +83,7 @@ class Route {
|
||||||
$route['expression'] = $route['expression'].'$';
|
$route['expression'] = $route['expression'].'$';
|
||||||
|
|
||||||
// Check path match
|
// 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;
|
$path_match_found = true;
|
||||||
|
|
||||||
// Cast allowed method to array if it's not one already, then run through all methods
|
// Cast allowed method to array if it's not one already, then run through all methods
|
||||||
|
|
Loading…
Reference in New Issue
Block a user