Added IMAP body text limit

This commit is contained in:
RainLoop Team 2014-07-18 15:32:03 +04:00
parent 037f4dc61c
commit 0fc8967a7f
5 changed files with 59 additions and 10 deletions

View file

@ -407,6 +407,7 @@ class HtmlUtils
$aContentLocationUrls = array(), &$aFoundedContentLocationUrls = array(),
$bDoNotReplaceExternalUrl = false, $bFindLinksInHtml = false, $fAdditionalExternalFilter = null)
{
$sResult = '';
$sHtml = null === $sHtml ? '' : (string) $sHtml;
$sHtml = \trim($sHtml);
if (0 === \strlen($sHtml))
@ -591,10 +592,10 @@ class HtmlUtils
$oElement->setAttribute('data-x-src', $sSrc);
if ($fAdditionalExternalFilter)
{
$sResult = \call_user_func($fAdditionalExternalFilter, $sSrc);
if (0 < \strlen($sResult))
$sCallResult = \call_user_func($fAdditionalExternalFilter, $sSrc);
if (0 < \strlen($sCallResult))
{
$oElement->setAttribute('data-x-additional-src', $sResult);
$oElement->setAttribute('data-x-additional-src', $sCallResult);
}
}
}