mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
SFTP: $content isn't defined when file is being written to
This commit is contained in:
parent
ff88b7e685
commit
af3f275f19
@ -1687,7 +1687,7 @@ class Net_SFTP extends Net_SSH2 {
|
||||
}
|
||||
}
|
||||
|
||||
if ($length > 0 && $length <= strlen($content)) {
|
||||
if ($length > 0 && $length <= $offset - $size) {
|
||||
if ($local_file === false) {
|
||||
$content = substr($content, 0, $length);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user