mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Additional input filtering.
This commit is contained in:
@@ -2931,6 +2931,18 @@ class e107
|
|||||||
exit();
|
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))
|
if(preg_match("/system\((.*);.*\)/i",$input))
|
||||||
{
|
{
|
||||||
header('HTTP/1.0 400 Bad Request', true, 400);
|
header('HTTP/1.0 400 Bad Request', true, 400);
|
||||||
|
Reference in New Issue
Block a user