Security : direct injection
This commit is contained in:
parent
5feb8f2e47
commit
05fd1bd099
6 changed files with 35 additions and 41 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue