[FIX] XSS using htmlentities()
This commit is contained in:
parent
668c3a0335
commit
f3b2ba0981
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@
|
|||
echo Bootstrap::formInputText(array(
|
||||
'name'=>'name',
|
||||
'label'=>$L->g('Name'),
|
||||
'value'=>$categoryMap['name'],
|
||||
'value'=>htmlentities($categoryMap['name'], ENT_QUOTES, 'UTF-8'),
|
||||
'class'=>'',
|
||||
'placeholder'=>'',
|
||||
'tip'=>''
|
||||
|
@ -50,7 +50,7 @@
|
|||
echo Bootstrap::formInputText(array(
|
||||
'name'=>'template',
|
||||
'label'=>$L->g('Template'),
|
||||
'value'=>isset($categoryMap['template'])?$categoryMap['template']:'',
|
||||
'value'=>isset($categoryMap['template'])?htmlentities($categoryMap['template'], ENT_QUOTES, 'UTF-8'):'',
|
||||
'class'=>'',
|
||||
'placeholder'=>'',
|
||||
'tip'=>''
|
||||
|
@ -89,4 +89,4 @@ $(document).ready(function() {
|
|||
$("#jsform").submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue