We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ffa4e commit 1241066Copy full SHA for 1241066
src/Howtomakeaturn/PDFInfo/PDFInfo.php
@@ -39,10 +39,10 @@ public function loadOutput()
39
{
40
$cmd = "pdfinfo"; // Linux
41
42
- $file = $this->file;
+ $file = escapeshellarg($this->file);
43
// Parse entire output
44
// Surround with double quotes if file name has spaces
45
- exec("$cmd \"$file\"", $output);
+ exec("$cmd $file", $output);
46
47
$this->output = $output;
48
}
0 commit comments