Pārlūkot izejas kodu

- 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.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@903 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 gadi atpakaļ
vecāks
revīzija
a861bf95e4
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      pages/ajax.csvimport.php

+ 1 - 0
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);