mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-15 17:57:12 +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) {
|
if ($local_file === false) {
|
||||||
$content = substr($content, 0, $length);
|
$content = substr($content, 0, $length);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user