From e0025750361499a6346b44532081a2eacb0d539a Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Fri, 4 Nov 2022 10:36:07 +0100 Subject: [PATCH] fixed: escapeshellarg pdf file --- src/BaseCompiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BaseCompiler.php b/src/BaseCompiler.php index 18a9986..56c0b6a 100644 --- a/src/BaseCompiler.php +++ b/src/BaseCompiler.php @@ -71,8 +71,8 @@ abstract class BaseCompiler implements Responsable { return collect([ 'cd '.escapeshellarg($this->file->getPath()), - $document->getEngine()->binary().' --halt-on-error '.$document->filename(), - $document->getEngine()->binary().' --halt-on-error '.$document->filename(), + $document->getEngine()->binary().' --halt-on-error '.escapeshellarg($document->filename()), + $document->getEngine()->binary().' --halt-on-error '.escapeshellarg($document->filename()), ])->implode(' && '); } }