[Pkg-owncloud-commits] [php-sabre-vobject] 25/128: Catch exceptions from invalid recurrence exception dates.
David Prévot
taffit at moszumanska.debian.org
Tue May 20 23:10:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 439f39081c36ac94321171b1b62c2c15995921d2
Author: Jan Schneider <jan at horde.org>
Date: Tue Jan 14 15:00:49 2014 +0100
Catch exceptions from invalid recurrence exception dates.
---
lib/Sabre/VObject/RecurrenceIterator.php | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/Sabre/VObject/RecurrenceIterator.php b/lib/Sabre/VObject/RecurrenceIterator.php
index 485bab7..5d31938 100644
--- a/lib/Sabre/VObject/RecurrenceIterator.php
+++ b/lib/Sabre/VObject/RecurrenceIterator.php
@@ -464,8 +464,11 @@ class RecurrenceIterator implements \Iterator {
foreach(explode(',', (string)$exDate) as $exceptionDate) {
- $this->exceptionDates[] =
- DateTimeParser::parse($exceptionDate, $this->startDate->getTimeZone());
+ try {
+ $this->exceptionDates[] =
+ DateTimeParser::parse($exceptionDate, $this->startDate->getTimeZone());
+ } catch (Exception $e) {
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list