From 7fe0e09d146b2d20aac840af9c5a4796f96fde84 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 20 Apr 2015 10:47:40 +0200 Subject: [PATCH] set size and unencrypted size to zero on fopen --- lib/private/files/stream/encryption.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php index 9ba98e61d3..08ca54a171 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;