Jelajahi Sumber

- 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 tahun lalu
induk
melakukan
a861bf95e4
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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);