From d1cb3a26d217d23d66ddda9bde224a615ddfabe6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 13 Dec 2010 15:36:49 +0800 Subject: [PATCH] GnumericToExcel.php --- GnumericToExcel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GnumericToExcel.php b/GnumericToExcel.php index eabf2440..3f4f31b2 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) ? ' : '.xls'; // make sure it ends in xls.. + $fname .= preg_match('/\.xls/i', $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). '"'); -- 2.39.2