Skip to content

Commit

Permalink
Fixed missing escapeshellarg
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 committed Jun 14, 2015
1 parent 9716f24 commit 1db73ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ protected function assembleOptionString()
if ($option === true) {
$optionString .= " {$name}";
} elseif (is_string($option) && $option !== '') {
$optionString .= " {$name} {$option}";
$optionString .= " {$name} " . escapeshellarg($option);
} elseif (is_array($option) && !empty($option)) {
$optionString .= " {$name} " . implode(' ', $option);
$optionString .= " {$name} " . implode(' ', escapeshellarg($option));
}
}

Expand Down

0 comments on commit 1db73ae

Please sign in to comment.