mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02: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')
|
if ($sDisposition == 'attachment')
|
||||||
{
|
{
|
||||||
$oPage = new CSVPage("");
|
$oPage = new CSVPage("");
|
||||||
|
$oPage->add_header("Content-type: text/csv; charset=utf-8");
|
||||||
$oPage->add_header("Content-disposition: attachment; filename=\"{$sClassDisplayName}.csv\"");
|
$oPage->add_header("Content-disposition: attachment; filename=\"{$sClassDisplayName}.csv\"");
|
||||||
$oPage->no_cache();
|
$oPage->no_cache();
|
||||||
$oPage->add($sResult);
|
$oPage->add($sResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user