From b1bf335b967616682c06b6bb596af2f0d94d940b Mon Sep 17 00:00:00 2001 From: huangdijia Date: Thu, 14 Jan 2016 15:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=A4=E5=A4=84notice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Input.php | 3 +++ library/think/Route.php | 1 + 2 files changed, 4 insertions(+) diff --git a/library/think/Input.php b/library/think/Input.php index 473b3934..8eec91ce 100644 --- a/library/think/Input.php +++ b/library/think/Input.php @@ -288,6 +288,9 @@ class Input */ private static function regexFilter($input, $filter) { + if(empty($filter_)){ + return null; + } $begin = $filter[0]; $end = $filter[strlen($filter) - 1]; if (is_array($input)) { diff --git a/library/think/Route.php b/library/think/Route.php index ce757ca7..cc11a521 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -19,6 +19,7 @@ class Route 'POST' => [], 'PUT' => [], 'DELETE' => [], + 'HEAD' => [], '*' => [], ];