From e2e77b911d4d16404baea2ea8fc52f18312a2908 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 17 Aug 2016 12:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRequest=E7=B1=BB=20filter?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/think/Request.php b/library/think/Request.php index bc4386bc..dc5808d4 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -128,7 +128,9 @@ class Request $this->$name = $item; } } - $this->filter = Config::get('default_filter'); + if (is_null($this->filter)) { + $this->filter = Config::get('default_filter'); + } } public function __call($method, $args)