From 2326a9b69385c4a947a87e2b0611700890751fe8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 25 Jul 2016 11:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E8=B5=84=E6=BA=90=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E7=9A=84=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99?= 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 60dbba5c..1128782e 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -472,7 +472,7 @@ class Route $val[1] = str_replace(':id', ':' . $option['var'][$rule], $val[1]); } $item = ltrim($rule . $val[1], '/'); - self::rule($item ? $item . '$' : '', $route . '/' . $val[2], $val[0], $option, $pattern); + self::rule($item . '$', $route . '/' . $val[2], $val[0], $option, $pattern); } } }