mirror of
https://github.com/nextcloud/server.git
synced 2026-06-05 06:44:47 -04:00
Merge pull request #56654 from nextcloud/backport/55981/stable32
[stable32] fix(encryption): Increment `lastChunkNr` when size is off
This commit is contained in:
commit
04fad49a72
1 changed files with 1 additions and 0 deletions
|
|
@ -464,6 +464,7 @@ class Encryption extends Wrapper {
|
|||
if (strlen($lastChunkContentEncrypted) > $blockSize) {
|
||||
$newUnencryptedSize += $unencryptedBlockSize;
|
||||
$lastChunkContentEncrypted = substr($lastChunkContentEncrypted, $blockSize);
|
||||
$lastChunkNr++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue