forked from Wavyzz/dolibarr
FIX Sanitize title of ajax_dialog
This commit is contained in:
@@ -322,7 +322,8 @@ function ajax_dialog($title,$message,$w=350,$h=150)
|
|||||||
{
|
{
|
||||||
global $langs;
|
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.= $message;
|
||||||
$msg.= '</div>'."\n";
|
$msg.= '</div>'."\n";
|
||||||
$msg.= '<script type="text/javascript">
|
$msg.= '<script type="text/javascript">
|
||||||
|
|||||||
@@ -1902,7 +1902,7 @@ if (! function_exists("llxFooter"))
|
|||||||
print '<div class="error">'.$msg.'</div>';
|
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";
|
print "\n\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user