]> source.dussan.org Git - nextcloud-server.git/commitdiff
still try to encrypt files, even if the session is not initialized. The stream wrappe...
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 4 Nov 2014 16:16:36 +0000 (17:16 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 4 Nov 2014 16:16:36 +0000 (17:16 +0100)
apps/files_encryption/lib/proxy.php

index 3b9dcbe77675952a14b5417af8a3bbfa9ed81041..31723ae7647237f8707598893f668adbd7e446d3 100644 (file)
@@ -95,8 +95,7 @@ class Proxy extends \OC_FileProxy {
 
                // don't call the crypt stream wrapper, if...
                if (
-                               $session->getInitialized() !== Session::INIT_SUCCESSFUL // encryption successful initialized
-                               || Crypt::mode() !== 'server'   // we are not in server-side-encryption mode
+                               Crypt::mode() !== 'server'   // we are not in server-side-encryption mode
                                || $this->isExcludedPath($path, $userId) // if path is excluded from encryption
                                || substr($path, 0, 8) === 'crypt://' // we are already in crypt mode
                ) {