webkitpdf.php
authorAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 05:28:26 +0000 (13:28 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 05:28:26 +0000 (13:28 +0800)
webkitpdf.php

index a0758ee..2140ba7 100644 (file)
@@ -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 $