We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20e17cb + dd5e5aa commit 500e417Copy full SHA for 500e417
src/Howtomakeaturn/PDFInfo/PDFInfo.php
@@ -40,7 +40,7 @@ public function __construct($file)
40
public function getBinary()
41
{
42
if (empty(static::$bin)) {
43
- static::$bin = getenv('PDFINFO_BIN') ?: 'pdfinfo';
+ static::$bin = trim(trim(getenv('PDFINFO_BIN'), '\\/" \'')) ?: 'pdfinfo';
44
}
45
46
return static::$bin;
0 commit comments