summaryrefslogtreecommitdiffstats
path: root/apps/contacts/export.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-06 13:18:33 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-06 15:29:33 +0200
commited950e3ba2a0fcce09cd101a547b1818094d0de5 (patch)
tree658a0f7302459b97445d1fc38b315d7f9501c098 /apps/contacts/export.php
parent2ddb72bb58eac5d5cfb97d50a15069d2ed18a898 (diff)
downloadnextcloud-server-ed950e3ba2a0fcce09cd101a547b1818094d0de5.tar.gz
nextcloud-server-ed950e3ba2a0fcce09cd101a547b1818094d0de5.zip
Correct mime type.
Diffstat (limited to 'apps/contacts/export.php')
-rw-r--r--apps/contacts/export.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/export.php b/apps/contacts/export.php
index 4e4ade2f2ba..f84a10c1388 100644
--- a/apps/contacts/export.php
+++ b/apps/contacts/export.php
@@ -23,7 +23,7 @@ if(isset($bookid)){
}
}elseif(isset($contactid)){
$data = OC_Contacts_App::getContactObject($contactid);
- header('Content-Type: text/directory');
+ header('Content-Type: text/vcard');
header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $data['fullname']) . '.vcf');
echo $data['carddata'];
}