diff --git a/rainloop/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php b/rainloop/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php index 851014b0b..d35d94f09 100644 --- a/rainloop/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php +++ b/rainloop/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php @@ -236,7 +236,18 @@ class HtmlUtils $sBodyAttrs = $aMatch[1]; } - $sHtml = \preg_replace('/^.*]*)>/si', '', $sHtml); + $iPos = \stripos($sHtml, ''); + if (0 < $iPos) + { + $sHtml = \substr($sHtml, $iPos); + } + else + { + $iPos = \stripos($sHtml, ']*)>/si', '', $sHtml); $sHtml = \preg_replace('/<\/body>/i', '', $sHtml); $sHtml = \preg_replace('/]*)>/i', '', $sHtml); $sHtml = \preg_replace('/<\/html>/i', '', $sHtml);