2
0
forked from Wavyzz/dolibarr

Debug v21

This commit is contained in:
Laurent Destailleur
2024-11-08 18:45:56 +01:00
parent 59718892fa
commit ec7ea921d4
2 changed files with 3 additions and 2 deletions

View File

@@ -12874,7 +12874,7 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
$TCompiledAttr = array();
foreach ($attr as $key => $value) {
$TCompiledAttr[] = $key.'="'.dolPrintHTMLForAttribute($value).'"';
$TCompiledAttr[] = $key.'="'.dol_escape_htmltag($value).'"'; // Do not use dolPrintHTMLForAttribute() here, we must accept "javascript:string"
}
$compiledAttributes = (empty($TCompiledAttr) ? '' : implode(' ', $TCompiledAttr));