From 84904130983a9b7c743c10bb8e76e747262448d3 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 7 Oct 2016 15:13:47 +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=E6=A3=80=E6=9F=A5?= 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 6a48960a..3db38183 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -889,7 +889,7 @@ class Route } else { $str = $key; } - if (is_string($str) && $str && 0 !== strpos($url, $str)) { + if (is_string($str) && $str && 0 !== strpos(str_replace('|', '/', $url), $str)) { continue; }