Merge pull request #56654 from nextcloud/backport/55981/stable32

[stable32] fix(encryption): Increment `lastChunkNr` when size is off
This commit is contained in:
Louis 2025-11-25 21:46:42 +01:00 committed by GitHub
commit 04fad49a72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -464,6 +464,7 @@ class Encryption extends Wrapper {
if (strlen($lastChunkContentEncrypted) > $blockSize) {
$newUnencryptedSize += $unencryptedBlockSize;
$lastChunkContentEncrypted = substr($lastChunkContentEncrypted, $blockSize);
$lastChunkNr++;
}
}