Skip to content

Commit

Permalink
Merge pull request #8 from vluzrmos/master
Browse files Browse the repository at this point in the history
Fix PDFINFO_BIN ENV var with quotes
  • Loading branch information
howtomakeaturn committed Mar 8, 2016
2 parents 20e17cb + dd5e5aa commit 500e417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Howtomakeaturn/PDFInfo/PDFInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($file)
public function getBinary()
{
if (empty(static::$bin)) {
static::$bin = getenv('PDFINFO_BIN') ?: 'pdfinfo';
static::$bin = trim(trim(getenv('PDFINFO_BIN'), '\\/" \'')) ?: 'pdfinfo';
}

return static::$bin;
Expand Down

0 comments on commit 500e417

Please sign in to comment.