X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=entry.php;h=1e5e7552976de876ee184fccb105b3866df15614;hb=323c95be58bcae4d11bab1a2b18a05420163ce53;hp=2bf488a7f15e3bff60579c19f1baf7bf37de9756;hpb=ae9c03c947498d611ca8ffef049369905a61924f;p=contagged diff --git a/entry.php b/entry.php index 2bf488a..1e5e755 100644 --- a/entry.php +++ b/entry.php @@ -71,7 +71,9 @@ if($_REQUEST['mode']=='vcf'){ $filename = $entry['givenname'].'_'.$entry['name'].'.vcf'; header("Content-Disposition: attachment; filename=\"$filename\""); header("Content-type: text/x-vcard; name=\"$filename\"; charset=utf-8"); - $smarty->display($template); + $output = $smarty->fetch($template) . "\n"; + $output = str_replace("\n", "\r\n", $output); + echo $output; }else{ header('Content-Type: text/html; charset=utf-8'); $smarty->display($template);