修正Input类

This commit is contained in:
thinkphp
2016-01-14 17:04:24 +08:00
parent dee3872ae0
commit 27d9b3913e

View File

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