mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user