diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-01 17:42:56 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:30 +0200 |
commit | 9d8c07850d8ade68fd75f8d6934687a6fbe8bc68 (patch) | |
tree | e11e6ab0efc31fb2aba5b7a8c5439df25abcdf2b | |
parent | a74ee674768cec92c85d313a27ea0c2de5aa29c1 (diff) | |
download | nextcloud-server-9d8c07850d8ade68fd75f8d6934687a6fbe8bc68.tar.gz nextcloud-server-9d8c07850d8ade68fd75f8d6934687a6fbe8bc68.zip |
fixing unencrypted file size
-rw-r--r-- | lib/private/files/storage/wrapper/encryption.php | 5 |
1 files changed, 4 insertions, 1 deletions
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); |