summaryrefslogtreecommitdiffstats
path: root/lib/private/files/stream
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-03-30 17:29:05 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:28 +0200
commit0eee3a2618235bcb59ce1bcb98526a7592de4578 (patch)
tree760c65a1a61f5dc928e8f80516fb9c58ea43040b /lib/private/files/stream
parentd185761d31f4845e9bf39dbbe0c61d199689deb7 (diff)
downloadnextcloud-server-0eee3a2618235bcb59ce1bcb98526a7592de4578.tar.gz
nextcloud-server-0eee3a2618235bcb59ce1bcb98526a7592de4578.zip
remove unencrypted_size from the cache, size will contain the unencrypted size
Diffstat (limited to 'lib/private/files/stream')
-rw-r--r--lib/private/files/stream/encryption.php3
1 files changed, 2 insertions, 1 deletions
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;