diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php index 0d934b5bced..67599ffff0e 100644 --- a/htdocs/compta/bank/list.php +++ b/htdocs/compta/bank/list.php @@ -538,7 +538,7 @@ foreach ($accounts as $key => $type) { // Label if (!empty($arrayfields['b.label']['checked'])) { - print ''.$objecttmp->label.''; + print ''.dol_escape_htmltag($objecttmp->label).''; if (!$i) { $totalarray['nbfield']++; } @@ -556,7 +556,7 @@ foreach ($accounts as $key => $type) { // Number if (!empty($arrayfields['b.number']['checked'])) { - print ''.$objecttmp->number.''; + print ''.dol_escape_htmltag($objecttmp->number).''; if (!$i) { $totalarray['nbfield']++; }