mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 19:40:28 +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];
|
$error = $this->status_codes[$status];
|
||||||
|
|
||||||
if ($this->version > 2 || strlen($response) < 4) {
|
if ($this->version > 2) {
|
||||||
extract(unpack('Nlength', $this->_string_shift($response, 4)));
|
extract(unpack('Nlength', $this->_string_shift($response, 4)));
|
||||||
$this->sftp_errors[] = $error . ': ' . $this->_string_shift($response, $length);
|
$this->sftp_errors[] = $error . ': ' . $this->_string_shift($response, $length);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user