Skip to content
Snippets Groups Projects
Commit eab9f7f2 authored by Jared Hancock's avatar Jared Hancock
Browse files

Better decision on HTML email

If the HTML ticket thread is enabled and the message is not explicitly
declared to be text, then assume it is an HTML message.
parent 8debfa84
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ class Mailer {
// the message appears to be HTML -- that is, the first
// non-whitespace char is a '<' character
if (!(isset($options['text']) && $options['text'])
&& preg_match('/^\s*</', $message)) {
&& $cfg->isHtmlThreadEnabled()) {
// Make sure nothing unsafe has creeped into the message
$message = Format::safe_html($message); //XXX??
$mime->setTXTBody(Format::html2text($message, 90, false));
......
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