diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-03 02:32:27 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-03 02:32:27 +0000 |
commit | bfcdaf0607a563d69380f21602ae0d95c00f0402 (patch) | |
tree | 31b324649c7c9193659307edd6672d852eb8ebde /includes/filetransfer | |
parent | b9b661ef2fa5bcf965a75a53057ffdb810f6e401 (diff) | |
download | brdo-bfcdaf0607a563d69380f21602ae0d95c00f0402.tar.gz brdo-bfcdaf0607a563d69380f21602ae0d95c00f0402.tar.bz2 |
#1013058 by bfroehle: Fixed SSH connection class has wrong port in error string.
Diffstat (limited to 'includes/filetransfer')
-rw-r--r-- | includes/filetransfer/ssh.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/filetransfer/ssh.inc b/includes/filetransfer/ssh.inc index 8113478a3..56b944ca4 100644 --- a/includes/filetransfer/ssh.inc +++ b/includes/filetransfer/ssh.inc @@ -17,7 +17,7 @@ class FileTransferSSH extends FileTransfer implements FileTransferChmodInterface function connect() { $this->connection = @ssh2_connect($this->hostname, $this->port); if (!$this->connection) { - throw new FileTransferException('SSH Connection failed to @host:@port', NULL, array('@host' => $this->hostname, '@port' => 21)); + throw new FileTransferException('SSH Connection failed to @host:@port', NULL, array('@host' => $this->hostname, '@port' => $this->port)); } if (!@ssh2_auth_password($this->connection, $this->username, $this->password)) { throw new FileTransferException('The supplied username/password combination was not accepted.'); |