From 9d8c07850d8ade68fd75f8d6934687a6fbe8bc68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Wed, 1 Apr 2015 17:42:56 +0200 Subject: [PATCH] fixing unencrypted file size --- lib/private/files/storage/wrapper/encryption.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index 09ba090acff..7cc488aa914 100644 --- a/lib/private/files/storage/wrapper/encryption.php +++ b/lib/private/files/storage/wrapper/encryption.php @@ -88,8 +88,11 @@ class Encryption extends Wrapper { $info = $this->getCache()->get($path); - if (isset($this->unencryptedSize[$fullPath]) && isset($info['fileid'])) { + if (isset($this->unencryptedSize[$fullPath])) { $size = $this->unencryptedSize[$fullPath]; + } + + if (isset($info['fileid'])) { $info['encrypted'] = true; $info['size'] = $size; $this->getCache()->put($path, $info); -- 2.39.5