From f6a365f9237767601d296533248801c004b8ebb5 Mon Sep 17 00:00:00 2001 From: xiaohe4966 Date: Fri, 21 Aug 2026 13:47:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E8=B7=AF=E7=94=B1=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=94=B9=E4=B8=BA=E5=8C=BA=E5=88=86=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index ab53aa20..fe5a8f8b 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; } } -- Gitee