From 50e8b976e4aba6ccf7ab66c93d177227f6c41140 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 22 Jul 2016 13:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E8=B7=AF=E7=94=B1=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/App.php b/library/think/App.php index e41bd9f3..0b7ff00a 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -466,7 +466,7 @@ class App */ public static function routeCheck($request, array $config) { - $path = $request->path(); + $path = rtrim($request->path(), '/'); $depr = $config['pathinfo_depr']; $result = false; // 路由检测