summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-11-09 12:55:57 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-11-09 12:55:57 (GMT)
commit826f3f8ea39299a9c8e8cf105ec112ef32960c38 (patch)
tree15cf5b5fa64997123aed020313a7e93d58618f54
parent3cff4556329849bb8939c1c2de03362e42d13bad (diff)
downloadroundcubemail-plugins-kolab-826f3f8ea39299a9c8e8cf105ec112ef32960c38.tar.gz
Avoid endless loops in recurrence computation
-rw-r--r--plugins/calendar/drivers/kolab/kolab_calendar.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/calendar/drivers/kolab/kolab_calendar.php b/plugins/calendar/drivers/kolab/kolab_calendar.php
index a62eb54..c1c8626 100644
--- a/plugins/calendar/drivers/kolab/kolab_calendar.php
+++ b/plugins/calendar/drivers/kolab/kolab_calendar.php
@@ -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;