Skip to content

Commit

Permalink
Revert "FtpServer, SshServer: fixed getDir() for root / [Closes dg#44]"
Browse files Browse the repository at this point in the history
This reverts commit 1ecd3d2.
  • Loading branch information
dg committed Jan 13, 2015
1 parent a0adcc4 commit ac9538e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Deployment/libs/FtpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function purge($path, callable $progress = NULL)
*/
public function getDir()
{
return '/' . trim($this->ftp('pwd'), '/');
return rtrim($this->ftp('pwd'), '/');
}


Expand Down
2 changes: 1 addition & 1 deletion Deployment/libs/SshServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function purge($dir, callable $progress = NULL)
*/
public function getDir()
{
return '/' . trim(parse_url($this->url, PHP_URL_PATH), '/');
return rtrim(parse_url($this->url, PHP_URL_PATH), '/');
}


Expand Down

0 comments on commit ac9538e

Please sign in to comment.