mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
fix calculation of $count, $count is always 8129 so we need to check this
against the unencrypted file size
This commit is contained in:
parent
5a20edac82
commit
bf6151e799
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ class Encryption extends Wrapper {
|
|||
|
||||
$result = '';
|
||||
|
||||
// $count = min($count, $this->unencryptedSize - $this->position);
|
||||
$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