From 908b1fe39465de78a23bd7a894390cbf0bd71ad0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Apr 2010 23:40:10 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20bug=20#29396=20:=20Export=20'=E9=E8...'?= =?UTF-8?q?=20du=20.vcf=20mal=20compris=20par=20Outlook.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contact/vcard.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/contact/vcard.php b/htdocs/contact/vcard.php index faccec02537..fd3154a2e25 100644 --- a/htdocs/contact/vcard.php +++ b/htdocs/contact/vcard.php @@ -88,10 +88,11 @@ $filename =trim(urldecode($v->getFileName())); // "Nom prenom.vcf" $filenameurlencoded = dol_sanitizeFileName(urlencode($filename)); //$filename = dol_sanitizeFileName($filename); -Header("Content-Disposition: attachment; filename=\"$filename\""); + +Header("Content-Disposition: attachment; filename=\"".$filename."\""); Header("Content-Length: ".strlen($output)); Header("Connection: close"); -Header("Content-Type: text/x-vCard; name=\"$filename\""); +Header("Content-Type: text/x-vcard; name=\"".$filename."\""); print $output;