#334 Fix escaping on ticket templates page
This commit is contained in:
parent
5b4422c59b
commit
8c3324ead6
@ -133,7 +133,9 @@ $num = hesk_dbNumRows($result);
|
|||||||
$options .= '>'.$mysaved['title'].'</option>';
|
$options .= '>'.$mysaved['title'].'</option>';
|
||||||
|
|
||||||
if ($modsForHesk_settings['rich_text_for_tickets']) {
|
if ($modsForHesk_settings['rich_text_for_tickets']) {
|
||||||
$javascript_messages.='myMsgTxt['.$mysaved['id'].']=\''.str_replace("\r\n","\\r\\n' + \r\n'", html_entity_decode($mysaved['message'] ))."';\n";
|
$theMessage = html_entity_decode($mysaved['message']);
|
||||||
|
$theMessage = addslashes($theMessage);
|
||||||
|
$javascript_messages.='myMsgTxt['.$mysaved['id'].']=\''.str_replace("\r\n","\\r\\n' + \r\n'", $theMessage)."';\n";
|
||||||
} else {
|
} else {
|
||||||
$javascript_messages.='myMsgTxt['.$mysaved['id'].']=\''.str_replace("\r\n","\\r\\n' + \r\n'", addslashes($mysaved['message']) )."';\n";
|
$javascript_messages.='myMsgTxt['.$mysaved['id'].']=\''.str_replace("\r\n","\\r\\n' + \r\n'", addslashes($mysaved['message']) )."';\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user