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