From bf1ebe8ae1c9291994d0737d2e710ae934ef1075 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 5 May 2017 17:40:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B7=AF=E7=94=B1=E5=88=86?= =?UTF-8?q?=E7=BB=84=E7=9A=84=E8=B7=AF=E7=94=B1=E8=A7=84=E5=88=99=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=86=99=E8=AF=86=E5=88=AB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);