Bug #16491 ยป csv_fix.diff
typo3/class.db_list_extra.inc (working copy) | ||
---|---|---|
$mimeType = 'application/octet-stream';
|
||
Header('Content-Type: '.$mimeType);
|
||
Header('Content-Disposition: attachment; filename='.$filename);
|
||
$client = t3lib_div::clientInfo();
|
||
if( ($client['BROWSER'] == 'msie') && ($client['VERSION'] == '6' || $client['VERSION'] == '7' || $client['VERSION'] == '8') ) {
|
||
Header('Pragma: cache');
|
||
Header('Expires: 0');
|
||
Header('Cache-Control: private');
|
||
}
|
||
// Printing the content of the CSV lines:
|
||
echo implode(chr(13).chr(10),$this->csvLines);
|