Skip to content

Commit 500e417

Browse files
Merge pull request #8 from vluzrmos/master
Fix PDFINFO_BIN ENV var with quotes
2 parents 20e17cb + dd5e5aa commit 500e417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Howtomakeaturn/PDFInfo/PDFInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct($file)
4040
public function getBinary()
4141
{
4242
if (empty(static::$bin)) {
43-
static::$bin = getenv('PDFINFO_BIN') ?: 'pdfinfo';
43+
static::$bin = trim(trim(getenv('PDFINFO_BIN'), '\\/" \'')) ?: 'pdfinfo';
4444
}
4545

4646
return static::$bin;

0 commit comments

Comments
 (0)