diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-12-07 16:27:31 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-12-07 19:12:06 +0100 |
commit | 59ae6e9dd6a750199517382bcf7d031259004e42 (patch) | |
tree | aa77240f266fb8dced3ba08cce9d8ccea42b1d72 /lib/private/Files/Stream/Encryption.php | |
parent | 77edd36583b7a12ba550d31c18df1138edb1a846 (diff) | |
download | nextcloud-server-59ae6e9dd6a750199517382bcf7d031259004e42.tar.gz nextcloud-server-59ae6e9dd6a750199517382bcf7d031259004e42.zip |
Also update the unencrypted size of files when creating them with empty content
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Files/Stream/Encryption.php')
-rw-r--r-- | lib/private/Files/Stream/Encryption.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php index bc4d0716270..9cc8b238ee1 100644 --- a/lib/private/Files/Stream/Encryption.php +++ b/lib/private/Files/Stream/Encryption.php @@ -528,6 +528,7 @@ class Encryption extends Wrapper { */ protected function writeHeader() { $header = $this->util->createHeader($this->newHeader, $this->encryptionModule); + $this->fileUpdated = true; return parent::stream_write($header); } |