projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4182d0a
)
webkitpdf.php
author
Alan Knowles
<alan@roojs.com>
Mon, 23 Nov 2015 05:31:09 +0000
(13:31 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 23 Nov 2015 05:31:09 +0000
(13:31 +0800)
webkitpdf.php
patch
|
blob
|
history
diff --git
a/webkitpdf.php
b/webkitpdf.php
index
9422a42
..
663c6e0
100644
(file)
--- a/
webkitpdf.php
+++ b/
webkitpdf.php
@@
-45,9
+45,13
@@
class WebkitPdf
//?? allow injections?
// not yet..
+ $outpr = tempnam(ini_get('session.save_path'), 'webkitTMP');
+ unlink($outpr);
+ $out = $outpr .'.pdf';
+
$cmd = "$xvfb --auto-servernum $webkitpdf " .
" --url " . escapeshellarg($_REQUEST['url']) . ' '
- " --pdf " . $tmpfile . ' '
+ " --pdf " . $tmpfile . ' '
;