From 2ba7cad695dfc638631cbec5aa25443106cfb127 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 13 Dec 2010 15:37:53 +0800 Subject: [PATCH] GnumericToExcel.php --- GnumericToExcel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GnumericToExcel.php b/GnumericToExcel.php index 3f4f31b2..38d96402 100644 --- a/GnumericToExcel.php +++ b/GnumericToExcel.php @@ -93,7 +93,7 @@ class Pman_Core_GnumericToExcel extends Pman $fh = fopen($targetTmp, 'r'); header('Content-type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename="' .addslashes($fname). '"'); - + header('Content-length: '. filesize($targetTmp)); // will not work on IE... - needs while/fget.. fpassthru($fh); unlink($targetTmp); -- 2.39.2