diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-04-28 13:01:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 13:01:13 +0200 |
commit | 8342964db09021596960a3887568172703a516dc (patch) | |
tree | 2bdc825531ccaab34aaf2ee3800b53a6831284f9 | |
parent | a50b4caafdad17ac7d70651d896893cd3ec014d7 (diff) | |
parent | 5494dd736ddac312154f1a43f449f849cd39b2f2 (diff) | |
download | nextcloud-server-8342964db09021596960a3887568172703a516dc.tar.gz nextcloud-server-8342964db09021596960a3887568172703a516dc.zip |
Merge pull request #32191 from nextcloud/handle-calendar-reminders-with-infinite-recurrence
Handle processing reminders for calendar objects with an infinite number of recurrences
-rw-r--r-- | apps/dav/lib/CalDAV/Reminder/ReminderService.php | 5 |
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)) { |