From ff211c042cc05a064478e6f58101e2fb2181deb8 Mon Sep 17 00:00:00 2001 From: Yoann FROMMELT Date: Mon, 19 Feb 2018 16:30:38 +0100 Subject: [PATCH] deal with filename with whitespace --- src/Pdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pdf.php b/src/Pdf.php index 8605326..55c9f3f 100644 --- a/src/Pdf.php +++ b/src/Pdf.php @@ -185,7 +185,7 @@ public function getCommand() { $this->setOptions(['generate'=>['noFrames' => false]]); $output = $this->getOutputDir() . '/' . preg_replace("/\.pdf$/", '', basename($this->file)) . '.html'; $options = $this->generateOptions(); - $command = $this->getOptions('pdftohtml_path') . ' ' . $options . ' ' . escapeshellarg($this->file) . ' ' . $output; + $command = $this->getOptions('pdftohtml_path') . ' ' . $options . ' ' . escapeshellarg($this->file) . ' ' . escapeshellarg($output); return $command; }