Accept events with METHOD:CANCEL and no end date

This commit is contained in:
Thomas Bruederli 2014-11-12 15:21:32 +01:00
parent 1c927ee0f4
commit 4669ca4cc4

View file

@ -675,6 +675,11 @@ class libvcalendar implements Iterator
unset($event['end']);
}
// some iTip CANCEL messages only contain the start date
if (!$event['end'] && $event['start'] && $this->method == 'CANCEL') {
$event['end'] = clone $event['start'];
}
// minimal validation
if (empty($event['uid']) || ($event['_type'] == 'event' && empty($event['start']) != empty($event['end']))) {
throw new VObject\ParseException('Object validation failed: missing mandatory object properties');