From 344ec81981416653581ed7e5a420fc9313775c14 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 4 May 2016 15:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E5=A4=84bug?= 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 6dee217e..dfa91027 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -130,7 +130,7 @@ class Route } if (0 === strpos($key, '[')) { if (empty($val)) { - break; + continue; } $key = substr($key, 1, -1); $result = ['routes' => $val, 'option' => $option, 'pattern' => $pattern];