From d20e842a5e9bb7c6873dbf3e5c5f296eb636c127 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 21 Feb 2021 18:41:28 -0600 Subject: [PATCH] SFTP/Stream: make it so you can write past the end of a file --- phpseclib/Net/SFTP/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index 842ebab5..fb976fd0 100644 --- a/phpseclib/Net/SFTP/Stream.php +++ b/phpseclib/Net/SFTP/Stream.php @@ -428,7 +428,7 @@ class Net_SFTP_Stream { switch ($whence) { case SEEK_SET: - if ($offset >= $this->size || $offset < 0) { + if ($offset < 0) { return false; } break;