mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 18:48:24 +01:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
d48c13b716
@ -3119,7 +3119,7 @@ class SFTP extends SSH2
|
|||||||
|
|
||||||
|
|
||||||
// 256 * 1024 is what SFTP_MAX_MSG_LENGTH is set to in OpenSSH's sftp-common.h
|
// 256 * 1024 is what SFTP_MAX_MSG_LENGTH is set to in OpenSSH's sftp-common.h
|
||||||
if ($tempLength > 256 * 1024) {
|
if (!$this->use_request_id && $tempLength > 256 * 1024) {
|
||||||
user_error('Invalid SFTP packet size');
|
user_error('Invalid SFTP packet size');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user