diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-02 17:16:27 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:31 +0200 |
commit | ba9a797eaad9aaeeed7960f03f40593a84096512 (patch) | |
tree | cf1516f0d203aaa32bd1c7e5e1803f888081ffaf /lib/base.php | |
parent | 9a7fbbbc5adb449def29e8571a5a14dcb776b63c (diff) | |
download | nextcloud-server-ba9a797eaad9aaeeed7960f03f40593a84096512.tar.gz nextcloud-server-ba9a797eaad9aaeeed7960f03f40593a84096512.zip |
Encryption storage wrapper is enabled by default - necessary to detect encrypted files even if encryption was disabled after files have been encrypted - prevents data corruption
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php index 1d536464153..be397e52449 100644 --- a/lib/base.php +++ b/lib/base.php @@ -701,10 +701,7 @@ class OC { } private static function registerEncryptionWrapper() { - $enabled = self::$server->getEncryptionManager()->isEnabled(); - if ($enabled) { - \OCP\Util::connectHook('OC_Filesystem', 'setup', 'OC\Encryption\Manager', 'setupStorage'); - } + \OCP\Util::connectHook('OC_Filesystem', 'setup', 'OC\Encryption\Manager', 'setupStorage'); } private static function registerEncryptionHooks() { |