修正两处notice

This commit is contained in:
huangdijia
2016-01-14 15:59:42 +08:00
parent 45701c6a57
commit b1bf335b96
2 changed files with 4 additions and 0 deletions

View File

@@ -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)) {

View File

@@ -19,6 +19,7 @@ class Route
'POST' => [],
'PUT' => [],
'DELETE' => [],
'HEAD' => [],
'*' => [],
];