FilterInput is a class for filtering input from any data source
Forked from the php input filter library by Daniel Morris
Original Contributors: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and Andrew Eddie.
Methods | ||
---|---|---|
protected
|
__construct(array $tagsArray = [], array $attrArray = [], int $tagsMethod = 0, int $attrMethod = 0, int $xssAuto = 1)
|
# |
public
static
|
getInstance(
array $tagsArray = [],
array $attrArray = [],
int $tagsMethod = 0,
int $attrMethod = 0,
int $xssAuto = 1,
): FilterInput
|
# |
public
|
process(mixed $source): string|array
|
# |
public
static
|
clean(mixed $source, string $type = 'string'): mixed
|
# |
public
|
cleanVar(mixed $source, string $type = 'string'): mixed
|
# |
protected
|
remove(String $source): String
|
# |
protected
|
filterTags(String $source): String
|
# |
protected
|
filterAttr(array $attrSet): array
|
# |
protected
|
decode(String $source): String
|
# |
Properties | |||
---|---|---|---|
protected
|
|
$tagsArray
|
# |
protected
|
|
$attrArray
|
# |
protected
|
|
$tagsMethod
|
# |
protected
|
|
$attrMethod
|
# |
protected
|
|
$xssAuto
|
# |
protected
|
|
$tagBlacklist = [
'applet',
'body',
'bgsound',
'base',
'basefont',
'embed',
'frame',
'frameset',
'head',
'html',
'id',
'iframe',
'ilayer',
'layer',
'link',
'meta',
'name',
'object',
'script',
'style',
'title',
'xml',
]
|
# |
protected
|
|
$attrBlacklist = ['action', 'background', 'codebase', 'dynsrc', 'lowsrc']
|
# |