summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Reminder
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-05-31 09:48:45 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-05-31 09:49:04 +0200
commitb7e7d80173f081bbe4d47e2b6f8dc7561cc27f6d (patch)
tree5b8e15f39eaf059458e132a79cce84bf0bf89dac /apps/dav/lib/CalDAV/Reminder
parent6a3a0409194decb0b33ab79e03784d6cf84d363e (diff)
downloadnextcloud-server-b7e7d80173f081bbe4d47e2b6f8dc7561cc27f6d.tar.gz
nextcloud-server-b7e7d80173f081bbe4d47e2b6f8dc7561cc27f6d.zip
fix(caldav): Ignore invalid events for reminder generation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/CalDAV/Reminder')
-rw-r--r--apps/dav/lib/CalDAV/Reminder/ReminderService.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
index 984e29f1e4d..d4b22911099 100644
--- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php
+++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
@@ -793,6 +793,10 @@ class ReminderService {
if ($child->name !== 'VEVENT') {
continue;
}
+ // Ignore invalid events with no DTSTART
+ if ($child->DTSTART === null) {
+ continue;
+ }
$vevents[] = $child;
}