mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #32191 from nextcloud/handle-calendar-reminders-with-infinite-recurrence
Handle processing reminders for calendar objects with an infinite number of recurrences
This commit is contained in:
commit
8342964db0
1 changed files with 5 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue