1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Contacts: 11th hour fix for invalid VCARD from CardDAV.

This commit is contained in:
Thomas Tanghus 2012-06-10 20:54:52 +02:00
parent 197e853588
commit 5397dcf695

View File

@ -373,6 +373,10 @@ class OC_Contacts_VCard{
public static function editFromDAVData($aid,$uri,$data){
$oldcard = self::findWhereDAVDataIs($aid,$uri);
$card = OC_VObject::parse($data);
if(!$card) {
OCP\Util::writeLog('contacts','OC_Contacts_VCard::editFromDAVData. Unable to parse VCARD, uri: '.$uri,OCP\Util::ERROR);
return false;
}
return self::edit($oldcard['id'], $card);
}