enhance xss protection
This commit is contained in:
parent
0c3a75bf12
commit
9ba9a11909
|
@ -65,13 +65,13 @@ if(!function_exists("read_requests")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// with security module
|
// with security module
|
||||||
$protect_methods = array("_ALL", "_GET", "_POST", "_JSON");
|
$protect_methods = array("_ALL", "_GET", "_POST", "_JSON");
|
||||||
if(function_exists("get_clean_xss")) {
|
if(function_exists("get_clean_xss")) {
|
||||||
foreach($protect_methods as $method) {
|
foreach($protect_methods as $method) {
|
||||||
foreach($requests[$method] as $k=>$v) {
|
foreach($requests[$method] as $k=>$v) {
|
||||||
$requests[$method][$k] = is_string($v) ? get_clean_xss($v) : $v;
|
$requests[$method][$k] = is_string($v) ? get_clean_xss($v) : $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set alias
|
// set alias
|
||||||
|
|
Loading…
Reference in New Issue
Block a user