Skip to content

Commit

Permalink
Also update the unencrypted size of files when creating them with emp…
Browse files Browse the repository at this point in the history
…ty content

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Dec 7, 2022
1 parent 77edd36 commit f6d6898
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Files/Stream/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ protected function readCache() {
*/
protected function writeHeader() {
$header = $this->util->createHeader($this->newHeader, $this->encryptionModule);
$this->fileUpdated = true;
return parent::stream_write($header);
}

Expand Down

0 comments on commit f6d6898

Please sign in to comment.