From f86e3ef061e7d561774958c6e2f9d3c64aeec1f4 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 26 Jul 2016 15:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB=E7=9A=84match?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=A3=80=E6=B5=8B?= 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 2f7cb64d..7fbe9d12 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1139,7 +1139,7 @@ class Route return false; } $var[$name] = isset($m1[$key]) ? $m1[$key] : ''; - } elseif (0 !== strcasecmp($val, $m1[$key])) { + } elseif (!isset($m1[$key]) || 0 !== strcasecmp($val, $m1[$key])) { return false; } }