Merge pull request #6271 from altatof/fix_extra_input

FIX: extrafield input for varchar was not working with special char
This commit is contained in:
Laurent Destailleur 2017-01-18 16:53:43 +01:00 committed by GitHub
commit 03c1521cde

View File

@ -739,7 +739,7 @@ class ExtraFields
}
elseif ($type == 'varchar')
{
$out='<input type="text" class="flat" name="'.$keysuffix.'options_'.$key.$keyprefix.'" size="'.$showsize.'" maxlength="'.$size.'" value="'.$value.'"'.($moreparam?$moreparam:'').'>';
$out='<input type="text" class="flat" name="'.$keysuffix.'options_'.$key.$keyprefix.'" size="'.$showsize.'" maxlength="'.$size.'" value="'.dol_escape_htmltag($value).'"'.($moreparam?$moreparam:'').'>';
}
elseif ($type == 'text')
{