Escape " from remote commands.

This commit is contained in:
Andrés Montañez
2012-10-24 19:52:29 -02:00
parent ad6f3cb6ee
commit 14b36eab88
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ abstract class Mage_Task_TaskAbstract
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
. $this->_config->deployment('user') . '@' . $this->_config->getHostName() . ' '
. '"cd ' . rtrim($this->_config->deployment('to'), '/') . $releasesDirectory . ' && '
. $command . '"';
. str_replace('"', '\"', $command) . '"';
return $this->_runLocalCommand($localCommand, $output);
}