Security : direct injection

This commit is contained in:
Dany De Bontridder 2018-05-31 23:04:59 +02:00
parent 5feb8f2e47
commit 05fd1bd099
6 changed files with 35 additions and 41 deletions

View file

@ -108,7 +108,7 @@ class HttpInput
if (array_key_exists($p_name,$this->array) )
{
$this->check_type($p_name, $p_type);
return $this->array[$p_name];
return strip_tags($this->array[$p_name]);
}
else
{
@ -121,7 +121,7 @@ class HttpInput
EXC_PARAM_VALUE);
}
$this->check_type($p_name, $p_type);
return $this->array[$p_name];
return strip_tags($this->array[$p_name]);
}
catch (Exception $e)
{