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(' && '); } }