Security : direct injection

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

View file

@ -221,7 +221,7 @@ class HtmlInput
{
if ($p_id=="")
$p_id=$p_name;
return '<INPUT TYPE="hidden" id="'.$p_id.'" NAME="'.$p_name.'" VALUE="'.$p_value.'">';
return '<INPUT TYPE="hidden" id="'.strip_tags($p_id).'" NAME="'.$p_name.'" VALUE="'.strip_tags($p_value).'">';
}
static function extension()