[Pkg-owncloud-commits] [php-sabre-vobject] 33/43: BirthdayCalendarGenerator skips cards with empty BDAY props

David Prévot taffit at moszumanska.debian.org
Sat Sep 5 15:23:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 4.0.0-alpha2
in repository php-sabre-vobject.

commit 0f9e3706b0464ab1b8cba632164535197f0bc896
Author: Dominik Tobschall <dominik at fruux.com>
Date:   Wed Aug 26 10:41:45 2015 +0200

    BirthdayCalendarGenerator skips cards with empty BDAY props
---
 lib/BirthdayCalendarGenerator.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/BirthdayCalendarGenerator.php b/lib/BirthdayCalendarGenerator.php
index 05df509..f93030e 100644
--- a/lib/BirthdayCalendarGenerator.php
+++ b/lib/BirthdayCalendarGenerator.php
@@ -120,6 +120,13 @@ class BirthdayCalendarGenerator {
                 continue;
             }
 
+            // We've seen clients (ez-vcard) putting "BDAY:" properties
+            // without a value into vCards. If we come across those, we'll
+            // skip them.
+            if (empty($object->BDAY->getValue())) {
+                continue;
+            }
+
             // We're always converting to vCard 4.0 so we can rely on the
             // VCardConverter handling the X-APPLE-OMIT-YEAR property for us.
             $object = $object->convert(Document::VCARD40);

-- 
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