mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Additional input filtering.
This commit is contained in:
parent
36fb58192a
commit
dcda195679
@ -2931,6 +2931,18 @@ class e107
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// Suspicious HTML.
|
||||
if(strpos($input, '<body/onload')!==false)
|
||||
{
|
||||
header('HTTP/1.0 400 Bad Request', true, 400);
|
||||
if(deftrue('e_DEBUG'))
|
||||
{
|
||||
echo "Bad Request: ".__METHOD__." : ". __LINE__;
|
||||
}
|
||||
exit();
|
||||
}
|
||||
|
||||
if(preg_match("/system\((.*);.*\)/i",$input))
|
||||
{
|
||||
header('HTTP/1.0 400 Bad Request', true, 400);
|
||||
|
Loading…
x
Reference in New Issue
Block a user