diff --git a/library/think/Route.php b/library/think/Route.php index a3001d8f..a5b19327 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -924,7 +924,7 @@ class Route } else { $str = $key; } - if (is_string($str) && $str && 0 !== strpos(str_replace('|', '/', $url), $str)) { + if (is_string($str) && $str && 0 !== stripos(str_replace('|', '/', $url), $str)) { continue; } self::setOption($option);