diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-02-08 20:35:33 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-02-09 23:43:27 +0100 |
commit | 5ccb9dfa7e35d78d61d7a973ee2a5fddfda7d766 (patch) | |
tree | c0d45ac7af479ba32dc2fdbd492999489fa62a94 /lib/private/files/storage/wrapper | |
parent | 3badf5caf579f8ff10c9917f62cb41cd9b0c68f8 (diff) | |
download | nextcloud-server-5ccb9dfa7e35d78d61d7a973ee2a5fddfda7d766.tar.gz nextcloud-server-5ccb9dfa7e35d78d61d7a973ee2a5fddfda7d766.zip |
Use database for keeping track of the version
Diffstat (limited to 'lib/private/files/storage/wrapper')
-rw-r--r-- | lib/private/files/storage/wrapper/encryption.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index 96d642e7780..3307599aa52 100644 --- a/lib/private/files/storage/wrapper/encryption.php +++ b/lib/private/files/storage/wrapper/encryption.php @@ -131,11 +131,12 @@ class Encryption extends Wrapper { // update file cache if ($info) { $info = $info->getData(); + $info['encrypted'] = $info['encryptedVersion']; } else { $info = []; + $info['encrypted'] = true; } - $info['encrypted'] = true; $info['size'] = $size; $this->getCache()->put($path, $info); |