diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-12-07 16:26:31 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-12-07 16:26:31 +0100 |
commit | 77edd36583b7a12ba550d31c18df1138edb1a846 (patch) | |
tree | 9d5d88e6bd5f7e2219ce1538f7c6b7774da53ff8 /lib | |
parent | 1357cf619189cf8229f2e860416f932dd559f6af (diff) | |
download | nextcloud-server-77edd36583b7a12ba550d31c18df1138edb1a846.tar.gz nextcloud-server-77edd36583b7a12ba550d31c18df1138edb1a846.zip |
Update the unencrypted file size when closing streams
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Stream/Encryption.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php index 0f1838c97c8..bc4d0716270 100644 --- a/lib/private/Files/Stream/Encryption.php +++ b/lib/private/Files/Stream/Encryption.php @@ -465,7 +465,7 @@ class Encryption extends Wrapper { $cacheEntry = $cache->get($this->internalPath); if ($cacheEntry) { $version = $cacheEntry['encryptedVersion'] + 1; - $cache->update($cacheEntry->getId(), ['encrypted' => $version, 'encryptedVersion' => $version]); + $cache->update($cacheEntry->getId(), ['encrypted' => $version, 'encryptedVersion' => $version, 'unencrypted_size' => $this->unencryptedSize]); } } |