mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
SFTP: CS adjustment
This commit is contained in:
parent
a8018c1922
commit
cd5e5126ca
@ -2974,7 +2974,6 @@ class SFTP extends SSH2
|
|||||||
$tempLength = $length;
|
$tempLength = $length;
|
||||||
$tempLength-= strlen($this->packet_buffer);
|
$tempLength-= strlen($this->packet_buffer);
|
||||||
|
|
||||||
|
|
||||||
// 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 ($tempLength > 256 * 1024) {
|
||||||
throw new \RuntimeException('Invalid Size');
|
throw new \RuntimeException('Invalid Size');
|
||||||
|
Loading…
Reference in New Issue
Block a user