1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-26 20:24:39 +01:00

SFTP: fix put() with remote file stream resource (#1177)

This commit is contained in:
terrafrost 2017-09-05 21:59:51 -05:00
parent 4b1102de7e
commit deb485c0e1

View File

@ -2036,7 +2036,7 @@ class Net_SFTP extends Net_SSH2
if (isset($fp)) {
$stat = fstat($fp);
$size = $stat['size'];
$size = !empty($stat) ? $stat['size'] : 0;
if ($local_start >= 0) {
fseek($fp, $local_start);