mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 00:59:48 +01:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
5fbdb8b582
@ -2049,11 +2049,13 @@ class SSH2
|
||||
|
||||
// try logging with 'none' as an authentication method first since that's what
|
||||
// PuTTY does
|
||||
if ($this->sublogin($username)) {
|
||||
return true;
|
||||
}
|
||||
if (!count($args)) {
|
||||
return false;
|
||||
if (substr($this->server_identifier, 0, 13) != 'SSH-2.0-CoreFTP') {
|
||||
if ($this->sublogin($username)) {
|
||||
return true;
|
||||
}
|
||||
if (!count($args)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return $this->sublogin($username, ...$args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user