Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-04-28 14:01:13 +0300
committerGitHub <noreply@github.com>2022-04-28 14:01:13 +0300
commit8342964db09021596960a3887568172703a516dc (patch)
tree2bdc825531ccaab34aaf2ee3800b53a6831284f9 /apps
parenta50b4caafdad17ac7d70651d896893cd3ec014d7 (diff)
parent5494dd736ddac312154f1a43f449f849cd39b2f2 (diff)
Merge pull request #32191 from nextcloud/handle-calendar-reminders-with-infinite-recurrence
Handle processing reminders for calendar objects with an infinite number of recurrences
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/Reminder/ReminderService.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
index d6901cc4fb0..b33bc8a175a 100644
--- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php
+++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
@@ -44,6 +44,7 @@ use Sabre\VObject\Component\VEvent;
use Sabre\VObject\InvalidDataException;
use Sabre\VObject\ParseException;
use Sabre\VObject\Recur\EventIterator;
+use Sabre\VObject\Recur\MaxInstancesExceededException;
use Sabre\VObject\Recur\NoInstancesException;
use function strcasecmp;
@@ -247,6 +248,10 @@ class ReminderService {
// instance. We are skipping this event from the output
// entirely.
return;
+ } catch (MaxInstancesExceededException $e) {
+ // The event has more than 3500 recurring-instances
+ // so we can ignore it
+ return;
}
while ($iterator->valid() && count($processedAlarms) < count($masterAlarms)) {