]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix newline problem in contacts
authorGeorg Ehrke <dev@georgswebsite.de>
Sat, 14 Jan 2012 23:47:50 +0000 (00:47 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Sat, 14 Jan 2012 23:47:50 +0000 (00:47 +0100)
apps/contacts/export.php

index 735d1c5b6316872f8911928c259aa0ba0fc3ebfb..d17b5e55146a85ff124269d329e809c8ffa826c4 100644 (file)
@@ -11,6 +11,8 @@ OC_Util::checkLoggedIn();
 OC_Util::checkAppEnabled('contacts');
 $book = isset($_GET['bookid']) ? $_GET['bookid'] : NULL;
 $contact = isset($_GET['contactid']) ? $_GET['contactid'] : NULL;
+$nl = '
+';
 if(isset($book)){
        $addressbook = OC_Contacts_App::getAddressbook($book);
        if($addressbook['userid'] != OC_User::getUser()){
@@ -22,7 +24,7 @@ if(isset($book)){
        header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $addressbook['displayname']) . '.vcf'); 
 
        foreach($cardobjects as $card) {
-               echo $card['carddata'];
+               echo $card['carddata'] . $nl;
        }
 }elseif(isset($contact)){      
        $data = OC_Contacts_App::getContactObject($contact);