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' => [], '*' => [], ];