From: Thomas Müller Date: Wed, 1 Apr 2015 15:42:56 +0000 (+0200) Subject: fixing unencrypted file size X-Git-Tag: v8.1.0alpha1~78^2~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d8c07850d8ade68fd75f8d6934687a6fbe8bc68;p=nextcloud-server.git fixing unencrypted file size --- 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);