mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
修正Input类
This commit is contained in:
@@ -288,14 +288,11 @@ class Input
|
|||||||
*/
|
*/
|
||||||
private static function regexFilter($input, $filter)
|
private static function regexFilter($input, $filter)
|
||||||
{
|
{
|
||||||
if(empty($filter_)){
|
if (empty($filter) || is_array($input)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$begin = $filter[0];
|
$begin = $filter[0];
|
||||||
$end = $filter[strlen($filter) - 1];
|
$end = $filter[strlen($filter) - 1];
|
||||||
if (is_array($input)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
('/' === $begin && '/' === $end) ||
|
('/' === $begin && '/' === $end) ||
|
||||||
('#' === $begin && '#' === $end) ||
|
('#' === $begin && '#' === $end) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user