Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
CalDavBackend: check if timerange is array before accessing
Signed-off-by: Simon Spannagel <[email protected]>
  • Loading branch information
Simon Spannagel authored and backportbot[bot] committed Oct 19, 2020
commit b1d3877625cb6ef13a80faa377fcf68e6fd0198d
3 changes: 2 additions & 1 deletion apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @author Thomas Citharel <[email protected]>
* @author Thomas Müller <[email protected]>
* @author Vinicius Cubas Brand <[email protected]>
* @author Simon Spannagel <[email protected]>
*
* @license AGPL-3.0
*
Expand Down Expand Up @@ -1364,7 +1365,7 @@ public function calendarQuery($calendarId, array $filters, $calendarType=self::C
$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
Expand Down