From 12544d975a34a52d959bacc0d21c06071b8aecf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 31 Aug 2022 23:10:43 +0200 Subject: [PATCH] Delete app-CVE-2022-29360.patch.template --- .../patches/app-CVE-2022-29360.patch.template | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 sources/patches/app-CVE-2022-29360.patch.template diff --git a/sources/patches/app-CVE-2022-29360.patch.template b/sources/patches/app-CVE-2022-29360.patch.template deleted file mode 100644 index 79fceee..0000000 --- a/sources/patches/app-CVE-2022-29360.patch.template +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/rainloop/v/__VERSION__/app/libraries/MailSo/Base/HtmlUtils.php b/rainloop/v/__VERSION__/app/libraries/MailSo/Base/HtmlUtils.new -index 2177627..f1e014e 100644 ---- a/rainloop/v/__VERSION__/app/libraries/MailSo/Base/HtmlUtils.php -+++ b/rainloop/v/__VERSION__/app/libraries/MailSo/Base/HtmlUtils.new -@@ -239,7 +239,8 @@ class HtmlUtils - $oWrapHtml->setAttribute($sKey, $sValue); - } - -- $oWrapDom = $oDom->createElement('div', '___xxx___'); -+ $rand_str = base64_encode(random_bytes(32)); -+ $oWrapDom = $oDom->createElement('div', $rand_str); - $oWrapDom->setAttribute('data-x-div-type', 'body'); - foreach ($aBodylAttrs as $sKey => $sValue) - { -@@ -250,7 +251,7 @@ class HtmlUtils - - $sWrp = $oDom->saveHTML($oWrapHtml); - -- $sResult = \str_replace('___xxx___', $sResult, $sWrp); -+ $sResult = \str_replace($rand_str, $sResult, $sWrp); - } - - $sResult = \str_replace(\MailSo\Base\HtmlUtils::$KOS, ':', $sResult);