* ImportExport: fixed not working export in IE8 (seems to choke on Content-Disposition: attachment header)

This commit is contained in:
Ralf Becker 2012-07-02 15:43:17 +00:00
parent 195a3353d7
commit ef0cc4f6bd

View File

@ -494,8 +494,9 @@ class importexport_export_ui {
// Get charset
$charset = egw_cache::getSession('importexport', $tmpfname);
header('Content-type: ' . ($_GET['_type'] ? $_GET['_type'] : 'application/text') . ($charset ? '; charset='.$charset : ''));
header('Content-Disposition: attachment; filename="'.$nicefname.'.'.$_GET['_suffix'].'"');
html::content_header($nicefname.'.'.$_GET['_suffic'],
($_GET['_type'] ? $_GET['_type'] : 'application/text') . ($charset ? '; charset='.$charset : ''),
filesize($tmpfname));
fpassthru($file);
unlink($tmpfname);