summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-02 17:16:27 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:31 +0200
commitba9a797eaad9aaeeed7960f03f40593a84096512 (patch)
treecf1516f0d203aaa32bd1c7e5e1803f888081ffaf /lib/base.php
parent9a7fbbbc5adb449def29e8571a5a14dcb776b63c (diff)
downloadnextcloud-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.php5
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() {