Escape ouput
This commit is contained in:
parent
6b48e09854
commit
587c4eb2ee
1 changed files with 3 additions and 2 deletions
|
|
@ -120,12 +120,13 @@ print '<div class="underbanner clearboth"></div>';
|
|||
print '<table class="border centpercent tableforfield">';
|
||||
|
||||
// Login
|
||||
print '<tr><td class="titlefield">'.$langs->trans("Login").' / '.$langs->trans("Id").'</td><td class="valeur">'.$object->login.' </td></tr>';
|
||||
print '<tr><td class="titlefield">'.$langs->trans("Login").' / '.$langs->trans("Id").'</td><td class="valeur">'.dol_escape_htmltag($object->login).' </td></tr>';
|
||||
|
||||
// If there is a link to the unencrypted password, we show the value in database here so we can compare because it is shown nowhere else
|
||||
// This is for very old situation. Password are now encrypted and $object->pass is empty.
|
||||
if (getDolGlobalString('LDAP_MEMBER_FIELD_PASSWORD')) {
|
||||
print '<tr><td>'.$langs->trans("LDAPFieldPasswordNotCrypted").'</td>';
|
||||
print '<td class="valeur">'.$object->pass.'</td>';
|
||||
print '<td class="valeur">'.dol_escape_htmltag($object->pass).'</td>';
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue