diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php
index 49a1654120f..6af133c655e 100644
--- a/htdocs/adherents/document.php
+++ b/htdocs/adherents/document.php
@@ -153,7 +153,7 @@ if ($id > 0) {
// Login
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
- print '
| '.$langs->trans("Login").' / '.$langs->trans("Id").' | '.$object->login.' |
';
+ print '| '.$langs->trans("Login").' / '.$langs->trans("Id").' | '.dol_escape_htmltag($object->login).' |
';
}
// Type
@@ -167,7 +167,7 @@ if ($id > 0) {
print '';
// Company
- print '| '.$langs->trans("Company").' | '.$object->company.' |
';
+ print '| '.$langs->trans("Company").' | '.dol_escape_htmltag($object->company).' |
';
// Civility
print '| '.$langs->trans("UserTitle").' | '.$object->getCivilityLabel().' | ';