Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
deal with filename with whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann FROMMELT committed Feb 19, 2018
1 parent c8d4fde commit ff211c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ff211c0

Please sign in to comment.