diff --git a/mail/rainloop/Makefile b/mail/rainloop/Makefile index 37b9010a9499..1f2dfc496013 100644 --- a/mail/rainloop/Makefile +++ b/mail/rainloop/Makefile @@ -1,52 +1,52 @@ PORTNAME= rainloop DISTVERSION= 1.16.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail www MASTER_SITES= https://github.com/RainLoop/rainloop-webmail/releases/download/v${PORTVERSION}/ PKGNAMESUFFIX?= ${PHP_PKGNAMESUFFIX} MAINTAINER= yasu@FreeBSD.org COMMENT?= Modern and interactive webmail .if "${PKGNAMESUFFIX}" == "${PHP_PKGNAMESUFFIX}" LICENSE= RainLoop LICENSE_NAME= RainLoop Software License LICENSE_TEXT= License can be found at: http://www.rainloop.net/licensing/ # Redistribution in any form is prohibited LICENSE_PERMS= auto-accept .endif USES= php:web,flavors zip USE_PHP= curl dom iconv json openssl pcre simplexml spl xml zlib NO_ARCH= yes NO_BUILD= yes NO_WRKSUBDIR= yes PLIST_SUB= VER="${PORTVERSION}" \ WWWGRP="${WWWGRP}" \ WWWOWN="${WWWOWN}" OPTIONS_DEFAULT= SQLITE OPTIONS_RADIO= DB OPTIONS_RADIO_DB= MYSQL PGSQL SQLITE MYSQL_USE= PHP=pdo_mysql PGSQL_USE= PHP=pdo_pgsql SQLITE_USE= PHP=pdo_sqlite post-patch: ${REINPLACE_CMD} 's/__USE_SINGLE_LINE_AUTH_PLAIN_COMMAND = false/__USE_SINGLE_LINE_AUTH_PLAIN_COMMAND = true/' \ ${WRKSRC}/rainloop/v/${PORTVERSION}/app/libraries/MailSo/Smtp/SmtpClient.php ${RM} ${WRKSRC}/rainloop/v/${PORTVERSION}/app/libraries/MailSo/Smtp/SmtpClient.php.bak do-install: @${MKDIR} ${STAGEDIR}${WWWDIR}/data ${INSTALL_DATA} ${WRKSRC}/data/* ${STAGEDIR}${WWWDIR}/data ${INSTALL_DATA} ${WRKSRC}/index.php ${STAGEDIR}${WWWDIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} rainloop ${STAGEDIR}${WWWDIR}) # Prune empty dirs @${FIND} ${STAGEDIR}${WWWDIR}/${PORTNAME}/v/${PORTVERSION} -type d -empty -delete .include diff --git a/mail/rainloop/files/patch-rainloop_v_1.16.0_app_libraries_MailSo_Base_HtmlUtils.php b/mail/rainloop/files/patch-rainloop_v_1.16.0_app_libraries_MailSo_Base_HtmlUtils.php new file mode 100644 index 000000000000..210cee2adc56 --- /dev/null +++ b/mail/rainloop/files/patch-rainloop_v_1.16.0_app_libraries_MailSo_Base_HtmlUtils.php @@ -0,0 +1,21 @@ +--- rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php.orig 2021-05-06 11:04:36 UTC ++++ rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php +@@ -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);