summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-01-28 16:51:13 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-01-28 16:51:13 (GMT)
commitd735c4721ef4976f3c128e1a32d22cd8a7c6020a (patch)
tree1bab67a397821ca002424c7176c4a166d28da966 /plugins/libcalendaring
parent9d3a665d9cf7fd3e658dae457a0ed2a4dbed5d82 (diff)
downloadroundcubemail-plugins-kolab-d735c4721ef4976f3c128e1a32d22cd8a7c6020a.tar.gz
Catch parse errors of recurrence exceptions in iCal files
Diffstat (limited to 'plugins/libcalendaring')
-rw-r--r--plugins/libcalendaring/libvcalendar.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php
index b81ae99..127ee36 100644
--- a/plugins/libcalendaring/libvcalendar.php
+++ b/plugins/libcalendaring/libvcalendar.php
@@ -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());
+ }
}
}
}