From 0eee3a2618235bcb59ce1bcb98526a7592de4578 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 30 Mar 2015 17:29:05 +0200 Subject: remove unencrypted_size from the cache, size will contain the unencrypted size --- lib/private/files/stream/encryption.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/files/stream/encryption.php') diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php index df74eeff893..e3927edff2c 100644 --- a/lib/private/files/stream/encryption.php +++ b/lib/private/files/stream/encryption.php @@ -271,7 +271,8 @@ class Encryption extends Wrapper { public function stream_write($data) { if ($this->position === 0) { - $this->size+=$this->writeHeader(); + $this->writeHeader(); + $this->size+=$this->util->getHeaderSize(); } $length = 0; -- cgit v1.2.3