From 459339b61bb45f0a74f5bb047c8d4e588e375c1c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 14 Jan 2016 14:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=A4=E6=96=AD?= 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 09e80d85..ce757ca7 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -560,7 +560,7 @@ class Route } // 替换路由地址中的变量 foreach ($matches as $key => $val) { - if (strpos($url, ':' . $key)) { + if (false !== strpos($url, ':' . $key)) { $url = str_replace(':' . $key, $val, $url); unset($matches[$key]); }