aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorSimon Spannagel <simonspa@kth.se>2020-10-16 07:47:29 +0200
committerSimon Spannagel <simonspa@kth.se>2020-10-16 07:50:36 +0200
commit9956d13b90f0b56822aee5ee4879c312d700eb55 (patch)
treeb35d0979803733a70cd89e47f749c96e9737927b /apps/dav
parent4bcf2ac63983e6ab7e2effaa1a988c0d75802b97 (diff)
downloadnextcloud-server-9956d13b90f0b56822aee5ee4879c312d700eb55.tar.gz
nextcloud-server-9956d13b90f0b56822aee5ee4879c312d700eb55.zip
CalDavBackend: check if timerange is array before accessing
Signed-off-by: Simon Spannagel <simonspa@kth.se>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 331b253c838..5017891cdc2 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -16,6 +16,7 @@
* @author Thomas Citharel <nextcloud@tcit.fr>
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Vinicius Cubas Brand <vinicius@eita.org.br>
+ * @author Simon Spannagel <simonspa@kth.se>
*
* @license AGPL-3.0
*
@@ -1364,7 +1365,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$requirePostFilter = false;
}
// There was a time-range filter
- if ($componentType === 'VEVENT' && isset($filters['comp-filters'][0]['time-range'])) {
+ if ($componentType === 'VEVENT' && isset($filters['comp-filters'][0]['time-range']) && is_array($filters['comp-filters'][0]['time-range'])) {
$timeRange = $filters['comp-filters'][0]['time-range'];
// If start time OR the end time is not specified, we can do a