mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
SSH2: SSH-2.0-CoreFTP is 15 bytes long - not 13
This commit is contained in:
parent
a09eb04296
commit
e4d2416bdc
@ -2153,7 +2153,7 @@ class Net_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 (substr($this->server_identifier, 0, 13) != 'SSH-2.0-CoreFTP' && $this->auth_methods_to_continue === null) {
|
if (substr($this->server_identifier, 0, 15) != 'SSH-2.0-CoreFTP' && $this->auth_methods_to_continue === null) {
|
||||||
if ($this->_login($username)) {
|
if ($this->_login($username)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user