Skip to content
Snippets Groups Projects
Commit 90881f2f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX Sanitize title of ajax_dialog

parent 15351a5a
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,8 @@ function ajax_dialog($title,$message,$w=350,$h=150)
{
global $langs;
$msg= '<div id="dialog-info" title="'.dol_escape_htmltag($title).'">';
$newtitle=dol_textishtml($title)?dol_string_nohtmltag($title,1):$title;
$msg= '<div id="dialog-info" title="'.dol_escape_htmltag($newtitle).'">';
$msg.= $message;
$msg.= '</div>'."\n";
$msg.= '<script type="text/javascript">
......
......@@ -1902,7 +1902,7 @@ if (! function_exists("llxFooter"))
print '<div class="error">'.$msg.'</div>';
}
define("MAIN_CORE_ERROR",0);
//define("MAIN_CORE_ERROR",0); // Constant was defined and we can't change value of a constant
}
print "\n\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment