Merge branch 'master' of github.com:steampixel/simplePHPRouter

This commit is contained in:
SteamPixel 2021-01-14 20:46:14 +01:00
commit 02d75226dc

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