mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正Input类
This commit is contained in:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user