Author: leithoff
New Revision: 55744
URL: http://svn.stylite.de/viewvc/egroupware?rev=55744&view=rev
Log:
try to prevent infinite loops when decoding mail-headers
Modified:
branches/14.2/phpgwapi/inc/class.translation.inc.php
— branches/14.2/phpgwapi/inc/class.translation.inc.php (original)
+++ branches/14.2/phpgwapi/inc/class.translation.inc.php Thu Apr 14 16:21:51 2016
@@ -1147,7 +1147,8 @@
{
if( strtoupper($element->charset) != ‘UTF-8’) $element->text = preg_replace($sar,$rar,$element->text);
// check if there is a possible nested encoding; make sure that the inputstring and the decoded result are different to avoid loops
-
$openTags = substr_count($element->text,'?=');
-
if(preg_match('/\?=.+=\?/', $element->text) && $openTags>0 && $openTags==substr_count($element->text,'=?') && $element->text != $_string)
{
$element->text = self::decodeMailHeader($element->text, $element->charset);
$element->charset = $displayCharset;
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs