From d961dd976542c52c3b7b0bd56cd81c5efba0f8e0 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 22 Oct 2016 20:05:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E8=B7=AF=E7=94=B1=E7=B1=BB?= =?UTF-8?q?=E7=9A=84parseUrl=E6=96=B9=E6=B3=95?= 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 29116167..df1b62b9 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1203,7 +1203,7 @@ class Route self::parseUrlParams(empty($path) ? '' : implode('|', $path)); // 封装路由 $route = [$module, $controller, $action]; - if (isset(self::$rules['name'][strtolower(implode($depr, $route))])) { + if (isset(self::$rules['name'][strtolower($module . '/' . Loader::parseName($controller, 1) . '/' . $action)])) { throw new HttpException(404, 'invalid request:' . str_replace('|', $depr, $url)); } }