#1013058 by bfroehle: Fixed SSH connection class has wrong port in error string.

merge-requests/26/head
Angie Byron 2011-01-03 02:32:27 +00:00
parent b9b661ef2f
commit bfcdaf0607
1 changed files with 1 additions and 1 deletions

View File

@ -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.');