X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/ca702ff634208249befa59dbc4a9f4f943232937..8c699f8c5b38ff11e2d517ee5c91dfdb1ab475e5:/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index c8f13225dd31..8d6506c5bc5b 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -1581,9 +1581,11 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\AbstractDataba // Setting filename: $filename = $prefix . '_' . date('dmy-Hi') . '.csv'; // Creating output header: - $mimeType = 'application/octet-stream'; - header('Content-Type: ' . $mimeType); + header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=' . $filename); + // Cache-Control header is needed here to solve an issue with browser IE and + // versions lower then 9. See for more information: http://support.microsoft.com/kb/323308 + header("Cache-Control: ''"); // Printing the content of the CSV lines: echo implode(chr(13) . chr(10), $this->csvLines); // Exits: