- 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]
This commit is contained in:
Denis Flaven
2010-10-19 14:15:25 +00:00
parent 63da528882
commit b66e489ec8

View File

@@ -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);