소스 검색

- 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 년 전
부모
커밋
a861bf95e4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);