projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7523b
)
webkitpdf.php
author
Alan Knowles
<alan@roojs.com>
Mon, 23 Nov 2015 08:04:23 +0000
(16:04 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 23 Nov 2015 08:04:23 +0000
(16:04 +0800)
webkitpdf.php
patch
|
blob
|
history
diff --git
a/webkitpdf.php
b/webkitpdf.php
index
f12564d
..
594d63a
100644
(file)
--- a/
webkitpdf.php
+++ b/
webkitpdf.php
@@
-72,7
+72,7
@@
class WebkitPdf
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $ts) . " GMT");
//header('Content-length: '. filesize($out));
- header('Content-Disposition: attachment; filename="' . htmlspecialchars(
$out
). '"');
+ header('Content-Disposition: attachment; filename="' . htmlspecialchars(
basename($out)
). '"');
ini_set('display_errors', 0);
$fh = fopen($out, 'rb');