From: Alan Knowles Date: Mon, 13 Dec 2010 07:06:09 +0000 (+0800) Subject: GnumericToExcel.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b9a8bac42e7d92994860c3203550641b77c3e304 GnumericToExcel.php --- diff --git a/GnumericToExcel.php b/GnumericToExcel.php index 708b1039..ed9436c3 100644 --- a/GnumericToExcel.php +++ b/GnumericToExcel.php @@ -89,7 +89,7 @@ class Pman_Core_GnumericToExcel extends Pman die("ERROR CONVERTING?:" . $cmd ."\n

OUTPUT:". htmlspecialchars($out)); } // unlink($srcTmp); - $fname = preg_match('/.xls/i', $fname) ? $fname : ($fname . '.xls'); // make sure it ends in xls.. + $fname = preg_match('/\.xls/i', $fname) ? $fname : ($fname . '.xls'); // make sure it ends in xls.. $fh = fopen($targetTmp, 'r'); header('Content-type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename="' .addslashes($fname). '"');