Skip to content

Commit 24ed4ed

Browse files
committed
Did not mean to remove escapeshellarg in ae92d1c.
1 parent ae92d1c commit 24ed4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function setCommand($command)
159159

160160
// Absolute path. If it's a relative path, let it slide.
161161
if ($position) {
162-
$command = sprintf($command[$position - 1].': && cd %s && %s', dirname($command), basename($command));
162+
$command = sprintf($command[$position - 1].': && cd %s && %s', escapeshellarg(dirname($command)), basename($command));
163163
}
164164
}
165165
$this->_command = $command;

0 commit comments

Comments
 (0)