diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-05-02 21:34:34 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-05-02 21:36:33 +0200 |
commit | f7e410147f519c877b3bdaa441d1f8e036617cb1 (patch) | |
tree | 9a92eabd5c8c7c56d6409526bcab648a7a2ed8fb /apps | |
parent | ec98ecff052425643765d7acb8d4af62d33a13cf (diff) | |
download | nextcloud-server-f7e410147f519c877b3bdaa441d1f8e036617cb1.tar.gz nextcloud-server-f7e410147f519c877b3bdaa441d1f8e036617cb1.zip |
Contacts: check for malformed VCards in calendar hook
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/contacts/lib/hooks.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/contacts/lib/hooks.php b/apps/contacts/lib/hooks.php index 2e862462716..e3d5df3d51f 100755 --- a/apps/contacts/lib/hooks.php +++ b/apps/contacts/lib/hooks.php @@ -64,6 +64,9 @@ class OC_Contacts_Hooks{ OC_Contacts_App::getAddressbook($aid); foreach(OC_Contacts_VCard::all($aid) as $card){ $vcard = OC_VObject::parse($card['carddata']); + if (!$vcard) { + continue; + } $birthday = $vcard->BDAY; if ($birthday) { $date = new DateTime($birthday); |