Skip to content

Commit

Permalink
Merge pull request #1082 from staabm/dl-space
Browse files Browse the repository at this point in the history
fixed download of files when filename remote contains spaces
  • Loading branch information
antonmedv authored Mar 10, 2017
2 parents dfeb152 + a2c81b0 commit b07f4ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- Fixed creating non-existed `writable_dirs` [#1000](https://github.com/deployphp/deployer/pull/1000)
- Fixed uploading files with spaces in a path via Native SSH [#1010](https://github.com/deployphp/deployer/issues/1010)
- Fix merge of string array config options [#1067](https://github.com/deployphp/deployer/pull/1067)
- Fixed download of files when filename remote contains spaces [#1082](https://github.com/deployphp/deployer/pull/1082)

## v4.2.1
[v4.2.0...v4.2.1](https://github.com/deployphp/deployer/compare/v4.2.0...v4.2.1)
Expand Down
2 changes: 2 additions & 0 deletions src/Server/Remote/NativeSsh.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public function upload($local, $remote)
*/
public function download($local, $remote)
{
$remote = str_replace(' ', '\ ', $remote);

$serverConfig = $this->getConfiguration();

$username = $serverConfig->getUser() ? $serverConfig->getUser() : null;
Expand Down

0 comments on commit b07f4ad

Please sign in to comment.