Skip to content

Commit

Permalink
Issue #2418619 by Pol: If the root path contains spaces, it won't wor…
Browse files Browse the repository at this point in the history
…k (drupal commit #5cb729b)
  • Loading branch information
deminy committed Jun 18, 2015
1 parent 9da6c67 commit 62c5a25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Drush/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function toString() {
$value = $this->getValue();
$str = '--' . $name;
if (!empty($value)) {
$str .= '=' . $value;
$str .= '="' . escapeshellcmd($value) . '"';
}
return $str;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Drush/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function main() {
$command[] = $this->command;

foreach ($this->params as $param) {
$command[] = $param->getValue();
$command[] = '"' . escapeshellcmd($param->getValue()) . '"';
}

$command = implode(' ', $command);
Expand Down

0 comments on commit 62c5a25

Please sign in to comment.