From 1e21d9af34cdd7fd68291217afb6c8ba2e6273cf Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 24 Jun 2016 17:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=8E=A7=E5=88=B6=E5=99=A8?= =?UTF-8?q?=E5=90=8D=E7=9A=84=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/library/think/App.php b/library/think/App.php index e2632e68..8a46c4fb 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -282,12 +282,6 @@ class App $actionName = strip_tags($result[2] ?: $config['default_action']); $actionName = $convert ? strtolower($actionName) : $actionName; - // 执行操作 - if (!preg_match('/^[A-Za-z](\/|\.|\w)*$/', $controller)) { - // 安全检测 - throw new \InvalidArgumentException('illegal controller name:' . $controller); - } - // 设置当前请求的控制器、操作 $request->controller($controller)->action($actionName);