From 27d9b3913e64790d4847d38ba354560ae479659c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 14 Jan 2016 17:04:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Input=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Input.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/library/think/Input.php b/library/think/Input.php index 8eec91ce..bfed8a20 100644 --- a/library/think/Input.php +++ b/library/think/Input.php @@ -288,14 +288,11 @@ class Input */ private static function regexFilter($input, $filter) { - if(empty($filter_)){ + if (empty($filter) || is_array($input)) { return null; } $begin = $filter[0]; $end = $filter[strlen($filter) - 1]; - if (is_array($input)) { - return null; - } if ( ('/' === $begin && '/' === $end) || ('#' === $begin && '#' === $end) ||