mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
SFTP: fix SFTPv2 errors when logging errors
This commit is contained in:
parent
585e0e44f4
commit
0f23be3188
@ -926,7 +926,7 @@ class Net_SFTP extends Net_SSH2
|
||||
|
||||
$error = $this->status_codes[$status];
|
||||
|
||||
if ($this->version > 2 || strlen($response) < 4) {
|
||||
if ($this->version > 2) {
|
||||
extract(unpack('Nlength', $this->_string_shift($response, 4)));
|
||||
$this->sftp_errors[] = $error . ': ' . $this->_string_shift($response, $length);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user