diff --git a/library/think/Route.php b/library/think/Route.php index ab53aa200a564fbf39ea7f54f7b0fb25f548cf98..fe5a8f8b54bbe53ac3d23c3a753a82137252e69d 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -938,7 +938,7 @@ class Route } else { $str = $key; } - if (is_string($str) && $str && 0 !== stripos(str_replace('|', '/', $url), $str)) { + if (is_string($str) && $str && 0 !== strpos(str_replace('|', '/', $url), $str)) { continue; } self::setOption($option); @@ -1368,7 +1368,7 @@ class Route } } $var[$name] = isset($m1[$key]) ? $m1[$key] : ''; - } elseif (!isset($m1[$key]) || 0 !== strcasecmp($val, $m1[$key])) { + } elseif (!isset($m1[$key]) || 0 !== strcmp($val, $m1[$key])) { return false; } }