diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-20 10:47:40 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-20 11:06:13 +0200 |
commit | 7fe0e09d146b2d20aac840af9c5a4796f96fde84 (patch) | |
tree | 03981e35ecbe127822d566d30110d7769c0bf6f7 /lib/private | |
parent | 1a894bd0d8ab034f35dbb3b723dd195e7f66aab4 (diff) | |
download | nextcloud-server-7fe0e09d146b2d20aac840af9c5a4796f96fde84.tar.gz nextcloud-server-7fe0e09d146b2d20aac840af9c5a4796f96fde84.zip |
set size and unencrypted size to zero on fopen
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/files/stream/encryption.php | 5 |
1 files changed, 2 insertions, 3 deletions
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; |