Skip to content
Snippets Groups Projects
Commit 0e428ec5 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

fix newline problem in contacts

parent 43f7b2fd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment