[Pkg-owncloud-commits] [php-sabre-vobject] 12/19: Corrected validation of EXDATE.
David Prévot
taffit at moszumanska.debian.org
Tue May 19 20:10:13 UTC 2015
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 74a6e0e0a5d0c6d7b053d111f89bdcc4435392c8
Author: Evert Pot <me at evertpot.com>
Date: Fri Apr 10 16:54:11 2015 -0400
Corrected validation of EXDATE.
Updates #219.
---
ChangeLog.md | 6 ++++++
lib/Property/ICalendar/DateTime.php | 18 ++++++++++--------
lib/Version.php | 2 +-
3 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/ChangeLog.md b/ChangeLog.md
index 5fb2312..3a78e03 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,6 +1,12 @@
ChangeLog
=========
+3.4.4 (2015-??-??)
+------------------
+
+* #219: Corrected validation of `EXDATE` properties with more than one value.
+
+
3.4.3 (2015-03-11)
------------------
diff --git a/lib/Property/ICalendar/DateTime.php b/lib/Property/ICalendar/DateTime.php
index 47dc34b..160eda4 100644
--- a/lib/Property/ICalendar/DateTime.php
+++ b/lib/Property/ICalendar/DateTime.php
@@ -365,15 +365,17 @@ class DateTime extends Property {
$messages = parent::validate($options);
$valueType = $this->getValueType();
- $value = $this->getValue();
+ $values = $this->getParts();
try {
- switch($valueType) {
- case 'DATE' :
- $foo = DateTimeParser::parseDate($value);
- break;
- case 'DATE-TIME' :
- $foo = DateTimeParser::parseDateTime($value);
- break;
+ foreach($values as $value) {
+ switch($valueType) {
+ case 'DATE' :
+ $foo = DateTimeParser::parseDate($value);
+ break;
+ case 'DATE-TIME' :
+ $foo = DateTimeParser::parseDateTime($value);
+ break;
+ }
}
} catch (\LogicException $e) {
$messages[] = array(
diff --git a/lib/Version.php b/lib/Version.php
index 66fdc5f..0e4b47d 100644
--- a/lib/Version.php
+++ b/lib/Version.php
@@ -14,6 +14,6 @@ class Version {
/**
* Full version number
*/
- const VERSION = '3.4.3';
+ const VERSION = '3.4.4';
}
--
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