mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
Escape " from remote commands.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user