diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-07-08 22:13:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-08 22:13:19 +0200 |
commit | 927b6d635f3bb8c0c2dc26612b0f3aed6678befe (patch) | |
tree | bc505740b36be64ba80f98173e28d1dfdb55d6ef /apps/dav | |
parent | b4031dc478beacf525098451b95fae8689b6721f (diff) | |
parent | 5f31d4b0bf1b9f45da580fc63d6112846097d4e6 (diff) | |
download | nextcloud-server-927b6d635f3bb8c0c2dc26612b0f3aed6678befe.tar.gz nextcloud-server-927b6d635f3bb8c0c2dc26612b0f3aed6678befe.zip |
Merge pull request #33118 from nextcloud/fix/address-book-export
Fix empty address books being exported
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/UserMigration/ContactsMigrator.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/UserMigration/ContactsMigrator.php b/apps/dav/lib/UserMigration/ContactsMigrator.php index ae1a61ce4f4..d2ba82eb2e5 100644 --- a/apps/dav/lib/UserMigration/ContactsMigrator.php +++ b/apps/dav/lib/UserMigration/ContactsMigrator.php @@ -131,6 +131,10 @@ class ContactsMigrator implements IMigrator, ISizeEstimationMigrator { } } + if (count($vCards) === 0) { + throw new InvalidAddressBookException(); + } + return [ 'name' => $addressBookNode->getName(), 'displayName' => $addressBookInfo['{DAV:}displayname'], |