Properly set file name and extension to addresses list.
authorStéphane Jacob <sj@m4x.org>
Mon, 3 Oct 2011 20:03:32 +0000 (22:03 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 3 Oct 2011 20:03:32 +0000 (22:03 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/userset.inc.php

index 1ff19ec..8dc2794 100644 (file)
@@ -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'), ';');