mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(files_versions): Update unencrypted_size during rollback
This prevent restored version of encrypted files from having a wrong reported size. This was blocking download. Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
5336c92ca5
commit
c87db7a960
1 changed files with 2 additions and 1 deletions
|
|
@ -378,7 +378,8 @@ class Storage {
|
|||
$fileInfo->getId(), [
|
||||
'encrypted' => $oldVersion,
|
||||
'encryptedVersion' => $oldVersion,
|
||||
'size' => $oldFileInfo->getSize()
|
||||
'size' => $oldFileInfo->getData()['size'],
|
||||
'unencrypted_size' => $oldFileInfo->getData()['unencrypted_size'],
|
||||
]
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue