From b8f7731b34d2c75a048672f053c8f8d13e68d6b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 3 Oct 2011 22:03:32 +0200 Subject: [PATCH] Properly set file name and extension to addresses list. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/userset.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), ';'); -- 2.1.4