projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
01bb151
)
GnumericToExcel.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 13 Dec 2010 07:03:49 +0000
(15:03 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 13 Dec 2010 07:03:49 +0000
(15:03 +0800)
GnumericToExcel.php
patch
|
blob
|
history
diff --git
a/GnumericToExcel.php
b/GnumericToExcel.php
index
0e50f4a
..
708b103
100644
(file)
--- a/
GnumericToExcel.php
+++ b/
GnumericToExcel.php
@@
-89,7
+89,7
@@
class Pman_Core_GnumericToExcel extends Pman
die("ERROR CONVERTING?:" . $cmd ."\n<BR><BR> OUTPUT:". htmlspecialchars($out));
}
// unlink($srcTmp);
-
+ $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). '"');