diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-01-15 00:47:50 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-01-15 00:47:50 +0100 |
commit | 0e428ec595777ef5f70b408763ccef7be340799b (patch) | |
tree | 338e00db79c0a73adc0d9c50fe9333a6788e6bca /apps/contacts | |
parent | 43f7b2fd2d874cbd15a5b181782096b364fe0993 (diff) | |
download | nextcloud-server-0e428ec595777ef5f70b408763ccef7be340799b.tar.gz nextcloud-server-0e428ec595777ef5f70b408763ccef7be340799b.zip |
fix newline problem in contacts
Diffstat (limited to 'apps/contacts')
-rw-r--r-- | apps/contacts/export.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/contacts/export.php b/apps/contacts/export.php index 735d1c5b631..d17b5e55146 100644 --- a/apps/contacts/export.php +++ b/apps/contacts/export.php @@ -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); |