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

oops: No reply separator on diagnostic email

parent 80280a34
Branches
Tags
No related merge requests found
...@@ -157,8 +157,9 @@ class Mailer { ...@@ -157,8 +157,9 @@ class Mailer {
$mid_token = (isset($options['thread'])) $mid_token = (isset($options['thread']))
? $options['thread']->asMessageId($to) : ''; ? $options['thread']->asMessageId($to) : '';
if (!(isset($options['text']) && $options['text'])) { if (!(isset($options['text']) && $options['text'])) {
if($cfg->stripQuotedReply() && ($tag=$cfg->getReplySeparator())) if ($cfg->stripQuotedReply() && ($tag=$cfg->getReplySeparator())
$message = "<div style=\"display:none\" data-mid=\"$mid_token\">$tag</div>" && (!isset($options['reply-tag']) || $options['reply-tag']))
$message = "<div style=\"display:none\" data-mid=\"$mid_token\">$tag<br/><br/></div
.$message; .$message;
// Make sure nothing unsafe has creeped into the message // Make sure nothing unsafe has creeped into the message
$message = Format::safe_html($message); //XXX?? $message = Format::safe_html($message); //XXX??
......
...@@ -36,7 +36,8 @@ if($_POST){ ...@@ -36,7 +36,8 @@ if($_POST){
if(!$errors && $email){ if(!$errors && $email){
if($email->send($_POST['email'],$_POST['subj'], if($email->send($_POST['email'],$_POST['subj'],
Format::sanitize($_POST['message']))) { Format::sanitize($_POST['message']),
null, array('reply-tag'=>false))) {
$msg='Test email sent successfully to '.Format::htmlchars($_POST['email']); $msg='Test email sent successfully to '.Format::htmlchars($_POST['email']);
Draft::deleteForNamespace('email.diag'); Draft::deleteForNamespace('email.diag');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment