Correct mime type.

This commit is contained in:
Thomas Tanghus 2012-06-06 13:18:33 +02:00
parent 2ddb72bb58
commit ed950e3ba2
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if(isset($bookid)){
} }
}elseif(isset($contactid)){ }elseif(isset($contactid)){
$data = OC_Contacts_App::getContactObject($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'); header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $data['fullname']) . '.vcf');
echo $data['carddata']; echo $data['carddata'];
} }