Accept events with METHOD:CANCEL and no end date
This commit is contained in:
parent
1c927ee0f4
commit
4669ca4cc4
1 changed files with 5 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue