Merge pull request #24445 from nextcloud/backport/24357/stable18

[stable18] Make sure we add new line between vcf groups exports
This commit is contained in:
Morris Jobke 2020-11-30 10:31:56 +01:00 committed by GitHub
commit 74630c466d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ class MultiGetExportPlugin extends DAV\ServerPlugin {
// Reduce the vcards into one string
$output = array_reduce($responseXml->getResponses(), function ($vcf, $card) {
$vcf .= $card->getResponseProperties()[200]['{urn:ietf:params:xml:ns:carddav}address-data'];
$vcf .= $card->getResponseProperties()[200]['{urn:ietf:params:xml:ns:carddav}address-data'] . PHP_EOL;
return $vcf;
}, '');