fix OpenSSH detection

This commit is contained in:
terrafrost 2021-09-09 05:39:20 -05:00
parent ced7dab1d5
commit 6303fbac9e
1 changed files with 1 additions and 1 deletions

View File

@ -1981,7 +1981,7 @@ class Net_SFTP extends Net_SSH2
uint32 id
string targetpath
string linkpath */
$packet = substr($this->server_identifier, 0, 13) == 'SSH-2.0-OpenSSH' ?
$packet = substr($this->server_identifier, 0, 15) == 'SSH-2.0-OpenSSH' ?
pack('Na*Na*', strlen($target), $target, strlen($link), $link) :
pack('Na*Na*', strlen($link), $link, strlen($target), $target);
}