set propper content type for excel documents

This commit is contained in:
Uwe Steinmann 2015-08-25 16:43:27 +02:00
parent 397c5ee9d8
commit 022490e461

View File

@ -427,7 +427,7 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($filename));
header("Content-Disposition: attachment; filename=\"export-" .date('Y-m-d') . ".xls\"");
header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
header("Content-Type: application/vnd.ms-excel");
header("Cache-Control: must-revalidate");
}