From 54b270fd29ffd272cab03439e908c9df1a8ee7f1 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 4 Dec 2017 18:10:48 +0800 Subject: [PATCH] =?UTF-8?q?default=5Ffilter=E6=94=AF=E6=8C=81=E5=9C=A8?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E4=B8=AD=E9=85=8D=E7=BD=AE=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/App.php b/library/think/App.php index 547eeca0..ccedffce 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -540,6 +540,9 @@ class App $request->module($module); } + // 设置默认过滤机制 + $request->filter($config['default_filter']); + // 当前模块路径 App::$modulePath = APP_PATH . ($module ? $module . DS : '');