From c7e363ef3b6ea2e9c71a227cbccd9cd98a8a152c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 3 May 2016 08:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB=E5=8F=AF?= =?UTF-8?q?=E9=80=89=E5=8F=82=E6=95=B0=E7=9A=84=E5=AE=8C=E6=95=B4=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=94=AF=E6=8C=81?= 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 f53ec508..6dee217e 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -515,7 +515,7 @@ class Route if ($len1 >= $len2 || strpos($rule, '[')) { if ('$' == substr($rule, -1, 1)) { // 完整匹配 - if ($len1 != $len2) { + if ($len1 != $len2 && false === strpos($rule, '[')) { return false; } else { $rule = substr($rule, 0, -1);