From: nielosz Date: Fri, 15 Apr 2016 10:07:08 +0000 (+0200) Subject: To check mails for a valid html part strip tags when comparing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d7ff8cdc7c4d8abb0f2d000175b5ccf2ca6a25b;p=civicrm-core.git To check mails for a valid html part strip tags when comparing --- diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index a863b10ff1..c324e044ee 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -784,7 +784,8 @@ ORDER BY i.contact_id, i.{$tempColumn} $this->templates['text'] = implode("\n", $template); } - if ($this->body_html) { + // To check for an html part strip tags + if (trim(strip_tags($this->body_html))) { $template = array(); if ($this->header) {