[Pkg-owncloud-commits] [owncloud] 50/73: Don't try to add invalid cards via CardDAV.
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:10 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.
commit 7cf133249e04980ed90cf586ecd404904f357972
Author: Thomas Tanghus <thomas at tanghus.net>
Date: Thu Oct 11 17:51:14 2012 +0200
Don't try to add invalid cards via CardDAV.
---
apps/contacts/lib/vcard.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php
index 7c8dbd2..27e2682 100644
--- a/apps/contacts/lib/vcard.php
+++ b/apps/contacts/lib/vcard.php
@@ -315,6 +315,9 @@ class OC_Contacts_VCard{
*/
public static function addFromDAVData($id,$uri,$data){
$card = OC_VObject::parse($data);
+ if(!$card) {
+ return false;
+ }
return self::add($id, $card, $uri);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list