From 660ba37f478a16041daae725065c0856c77cd4ca Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 28 May 2021 15:12:49 +0200 Subject: [PATCH] Do not try to filter out html body as it would cause broken html content not being displayed at all --- mail/inc/class.mail_ui.inc.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index a3fcba05bf..7a26604673 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -3509,12 +3509,6 @@ $filter['before']= date("d-M-Y", $cutoffdate2); } else { - // htmLawed filter only the 'body' - if (preg_match('`(]*>)(.+?)(.*?)`ims', $newBody, $matches)&& !empty($matches[2])) - { - $hasOther = true; - $newBody = $matches[2]; - } $htmLawed = new Api\Html\HtmLawed(); // the next line should not be needed, but produces better results on HTML 2 Text conversion, // as we switched off HTMLaweds tidy functionality