mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Adjusting count on read
This commit is contained in:
parent
3e3226da4c
commit
ff16e3dbff
1 changed files with 2 additions and 1 deletions
|
|
@ -249,9 +249,10 @@ class Encryption extends Wrapper {
|
|||
|
||||
// skip the header if we read the file from the beginning
|
||||
if ($this->position === 0) {
|
||||
parent::stream_read($this->util->getBlockSize());
|
||||
parent::stream_read($this->util->getHeaderSize());
|
||||
}
|
||||
|
||||
$count = min($count, $this->unencryptedSize - $this->position);
|
||||
while ($count > 0) {
|
||||
$remainingLength = $count;
|
||||
// update the cache of the current block
|
||||
|
|
|
|||
Loading…
Reference in a new issue