From 60a459682464d9d989b0a6181971abe793655247 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 26 Jul 2016 15:34:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= 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 80b15cda..222dd78f 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1207,7 +1207,7 @@ class Route // 替换路由地址中的变量 if (is_string($route) && !empty($matches)) { foreach ($matches as $key => $val) { - if (false !== strpos($url, ':' . $key)) { + if (false !== strpos($route, ':' . $key)) { $route = str_replace(':' . $key, $val, $route); unset($matches[$key]); }