Catch parse errors of recurrence exceptions in iCal files

This commit is contained in:
Thomas Bruederli 2015-01-28 17:51:13 +01:00
parent 9d3a665d9c
commit d735c4721e

View file

@ -320,7 +320,12 @@ class libvcalendar implements Iterator
if ($object['recurrence']) {
foreach ($vobject->children as $component) {
if ($component->name == 'VEVENT' && isset($component->{'RECURRENCE-ID'})) {
$object['recurrence']['EXCEPTIONS'][] = $this->_to_array($component);
try {
$object['recurrence']['EXCEPTIONS'][] = $this->_to_array($component);
}
catch (Exception $e) {
console("iCal data parse error: " . $e->getMessage(), $component->serialize());
}
}
}
}