mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
* Mail: fix memory exhaustion caused by e-mails with long string set on DATE field
This commit is contained in:
parent
621363820d
commit
8f24e0dfec
@ -4276,7 +4276,9 @@ class Mail
|
||||
|
||||
// remove last space-separated part and retry
|
||||
$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);
|
||||
$date2return = self::_strtotime(implode(' ', $parts), $format, $convert2usertime);
|
||||
|
Loading…
Reference in New Issue
Block a user