summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;