From c786132834091d5b6a3418da4a18b3a9958de649 Mon Sep 17 00:00:00 2001 From: Pierre-Alain Bandinelli Date: Sun, 24 Apr 2022 06:35:50 +0200 Subject: [PATCH] Fixing diff char being left over --- app/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php b/app/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php index effcf17..43f32c2 100644 --- a/app/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php +++ b/app/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php @@ -239,9 +239,8 @@ public static function GetTextFromDom($oDom, $bWrapByFakeHtmlAndBodyDiv = true) $oWrapHtml->setAttribute($sKey, $sValue); } - #$oWrapDom = $oDom->createElement('div', '___xxx___'); $rand_str = base64_encode(random_bytes(32)); -+ $oWrapDom = $oDom->createElement('div', $rand_str); + $oWrapDom = $oDom->createElement('div', $rand_str); $oWrapDom->setAttribute('data-x-div-type', 'body'); foreach ($aBodylAttrs as $sKey => $sValue) { @@ -252,7 +251,6 @@ public static function GetTextFromDom($oDom, $bWrapByFakeHtmlAndBodyDiv = true) $sWrp = $oDom->saveHTML($oWrapHtml); - #$sResult = \str_replace('___xxx___', $sResult, $sWrp); $sResult = \str_replace($rand_str, $sResult, $sWrp); }