From: Stéphane Jacob Date: Mon, 3 Oct 2011 20:03:32 +0000 (+0200) Subject: Properly set file name and extension to addresses list. X-Git-Tag: xorg/1.1.4~98 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b8f7731b34d2c75a048672f053c8f8d13e68d6b0;p=platal.git Properly set file name and extension to addresses list. Signed-off-by: Stéphane Jacob --- diff --git a/include/userset.inc.php b/include/userset.inc.php index 1ff19ec..8dc2794 100644 --- a/include/userset.inc.php +++ b/include/userset.inc.php @@ -425,7 +425,7 @@ class AddressesView implements PlView { $pids = $this->set->getIds(new PlLimit()); $visibility = Visibility::defaultForRead(Visibility::VIEW_AX); - pl_cached_content_headers('text/x-csv', 1); + pl_cached_content_headers('text/x-csv', 'utf-8', 1, 'adresses.csv'); $csv = fopen('php://output', 'w'); fputcsv($csv, array('adresses'), ';');