From: Bjoern Schiessle Date: Mon, 20 Apr 2015 08:47:40 +0000 (+0200) Subject: set size and unencrypted size to zero on fopen X-Git-Tag: v8.1.0alpha2~15^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7fe0e09d146b2d20aac840af9c5a4796f96fde84;p=nextcloud-server.git set size and unencrypted size to zero on fopen --- diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php index 9ba98e61d3e..08ca54a1713 100644 --- a/lib/private/files/stream/encryption.php +++ b/lib/private/files/stream/encryption.php @@ -223,9 +223,8 @@ class Encryption extends Wrapper { || $mode === 'wb+' ) { // We're writing a new file so start write counter with 0 bytes - // TODO can we remove this completely? - //$this->unencryptedSize = 0; - //$this->size = 0; + $this->unencryptedSize = 0; + $this->size = 0; $this->readOnly = false; } else { $this->readOnly = true;