mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-01 04:13:28 +01:00
* Mail: fix memory exhaustion caused by e-mails with long string set on DATE field
This commit is contained in:
parent
03b9afd6d3
commit
4d37b68987
@ -4276,7 +4276,9 @@ class Mail
|
|||||||
|
|
||||||
// remove last space-separated part and retry
|
// remove last space-separated part and retry
|
||||||
$parts = explode(' ',$_date);
|
$parts = explode(' ',$_date);
|
||||||
if (count($parts) > 1)
|
// try only 10 times to prevent of causing error by reaching
|
||||||
|
// maximum function nesting level.
|
||||||
|
if (count($parts) > 1 && count($parts)<10)
|
||||||
{
|
{
|
||||||
array_pop($parts);
|
array_pop($parts);
|
||||||
$date2return = self::_strtotime(implode(' ', $parts), $format, $convert2usertime);
|
$date2return = self::_strtotime(implode(' ', $parts), $format, $convert2usertime);
|
||||||
|
Loading…
Reference in New Issue
Block a user