1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00

Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2016-08-28 23:17:06 -05:00
commit f30f8045fd

View File

@ -1913,7 +1913,7 @@ class SFTP extends SSH2
}
} else {
$temp = isset($fp) ? fread($fp, $sftp_packet_size) : substr($data, $sent, $sftp_packet_size);
if ($temp === false) {
if ($temp === false || $temp === '') {
break;
}
}