mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
FIX CVE-2024-55227 and CVE-2024-55228 CSRF when
MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is on (hidden option not on by default)
This commit is contained in:
committed by
Laurent Destailleur
parent
a1003a1a90
commit
9aa24d9d9a
@@ -3898,9 +3898,9 @@ class Commande extends CommonOrder
|
||||
if (empty($notooltip) && $user->hasRight('commande', 'lire')) {
|
||||
if (getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER')) {
|
||||
$label = $langs->trans("Order");
|
||||
$linkclose .= ' alt="'.dol_escape_htmltag($label, 1).'"';
|
||||
$linkclose .= ' alt="'.dolPrintHtmlForAttribute($label).'"';
|
||||
}
|
||||
$linkclose .= ($label ? ' title="'.dol_escape_htmltag($label, 1).'"' : ' title="tocomplete"');
|
||||
$linkclose .= ($label ? ' title="'.dolPrintHtmlForAttribute($label).'"' : ' title="tocomplete"');
|
||||
$linkclose .= $dataparams.' class="'.$classfortooltip.'"';
|
||||
|
||||
$target_value = array('_self', '_blank', '_parent', '_top');
|
||||
|
||||
Reference in New Issue
Block a user