N°4481 Fix badly escaped dialog tooltip

Was commited to develop first (99a0e0c5 and 4f27f3ac)
This commit is contained in:
Pierre Goiffon
2021-12-10 13:37:40 +01:00
parent 97d6d413bb
commit 10cfb373f2

View File

@@ -373,7 +373,7 @@ EOF
$sHTML .= "</form>\n";
$sHTML .= '</div></div>';
$sDialogTitleSanitized = utils::HtmlToText($sTitle);
$sDialogTitleSanitized = addslashes(utils::HtmlToText($sTitle));
$oPage->add_ready_script(
<<<EOF
$('#ac_dlg_{$this->iId}').dialog({ width: $(window).width()*0.8, height: $(window).height()*0.8, autoOpen: false, modal: true, title: '$sDialogTitleSanitized', resizeStop: oACWidget_{$this->iId}.UpdateSizes, close: oACWidget_{$this->iId}.OnClose });