Skip to content

Commit

Permalink
Merge pull request civicrm#11399 from JMAConsulting/CRM-19704
Browse files Browse the repository at this point in the history
CRM-19704: mailing body stripped if image only
  • Loading branch information
colemanw committed Dec 12, 2017
2 parents 25ae8a6 + fd59599 commit 931760a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ public function getTemplates() {
}

// To check for an html part strip tags
if (trim(strip_tags($this->body_html))) {
if (trim(strip_tags($this->body_html, '<img>'))) {

$template = array();
if ($this->header) {
Expand Down

0 comments on commit 931760a

Please sign in to comment.