|
@@ -1433,7 +1433,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|
|
if ($action != 'edit') {
|
|
|
print dol_get_fiche_head($head, 'user', $title, -1, 'user');
|
|
|
|
|
|
- $morehtmlref = '<a href="'.DOL_URL_ROOT.'/user/vcard.php?id='.$object->id.'&output=file&file='.urlencode($object->getFullName($langs).'.vcf').'" class="refid" rel="noopener">';
|
|
|
+ $morehtmlref = '<a href="'.DOL_URL_ROOT.'/user/vcard.php?id='.$object->id.'&output=file&file='.urlencode(dol_sanitizeFileName($object->getFullName($langs).'.vcf')).'" class="refid" rel="noopener" rel="noopener">';
|
|
|
$morehtmlref .= img_picto($langs->trans("Download").' '.$langs->trans("VCard").' ('.$langs->trans("AddToContacts").')', 'vcard.png', 'class="valignmiddle marginleftonly paddingrightonly"');
|
|
|
$morehtmlref .= '</a>';
|
|
|
|