projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
645b4fd
)
webkitpdf.php
author
Alan Knowles
<alan@roojs.com>
Mon, 23 Nov 2015 05:28:26 +0000
(13:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 23 Nov 2015 05:28:26 +0000
(13:28 +0800)
webkitpdf.php
patch
|
blob
|
history
diff --git
a/webkitpdf.php
b/webkitpdf.php
index
a0758ee
..
2140ba7
100644
(file)
--- a/
webkitpdf.php
+++ b/
webkitpdf.php
@@
-35,13
+35,17
@@
class WebkitPdf
$this->h404("missing xvfb");
}
- $
xvfb
= System::which('webkitpdf');
- if (empty($
xvfb
)) {
+ $
webkitpdf
= System::which('webkitpdf');
+ if (empty($
webkitpdf
)) {
$this->h404("missing webkitpdf (compile it..)");
}
// max delay 20 seconds.? bit generous..
$delay = empty($_REQUEST['delay']) ? 1 : max(20,$_REQUEST['delay']);
+ //?? allow injections?
+ // not yet..
+
+ $cmd = "$xvfb --auto-servernum $