mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-24 11:05:30 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
b32ffb64b8
@ -2959,7 +2959,7 @@ class SFTP extends SSH2
|
||||
$tempLength-= strlen($this->packet_buffer);
|
||||
|
||||
// 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) {
|
||||
throw new \RuntimeException('Invalid Size');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user