From b66e489ec8b5bf1e751d0a4a080e0e2dec083bf7 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 19 Oct 2010 14:15:25 +0000 Subject: [PATCH] - Fixed Trac #298: use the proper content-type for CSV files to prevent the let the browser pick the most appropriate application to open such files. SVN:trunk[903] --- pages/ajax.csvimport.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/ajax.csvimport.php b/pages/ajax.csvimport.php index cedf7b344..ef9ecf72e 100644 --- a/pages/ajax.csvimport.php +++ b/pages/ajax.csvimport.php @@ -373,6 +373,7 @@ EOF if ($sDisposition == 'attachment') { $oPage = new CSVPage(""); + $oPage->add_header("Content-type: text/csv; charset=utf-8"); $oPage->add_header("Content-disposition: attachment; filename=\"{$sClassDisplayName}.csv\""); $oPage->no_cache(); $oPage->add($sResult);