projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b9a8bac
)
GnumericToExcel.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 13 Dec 2010 07:36:47 +0000
(15:36 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 13 Dec 2010 07:36:47 +0000
(15:36 +0800)
GnumericToExcel.php
patch
|
blob
|
history
diff --git
a/GnumericToExcel.php
b/GnumericToExcel.php
index
ed9436c
..
eabf244
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);
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..
+ $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). '"');
$fh = fopen($targetTmp, 'r');
header('Content-type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename="' .addslashes($fname). '"');