Avoid endless loops in recurrence computation

This commit is contained in:
Thomas Bruederli 2012-11-09 13:55:57 +01:00
parent 3cff455632
commit 826f3f8ea3

View file

@ -409,6 +409,10 @@ class kolab_calendar
}
else if ($next_event['start'] > $end) // stop loop if out of range
break;
// avoid endless recursion loops
if ($i > 1000)
break;
}
return $events;