From 0580c232d72123ca7e3c675ed73268099d00d185 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 4 Nov 2014 17:16:36 +0100 Subject: [PATCH] still try to encrypt files, even if the session is not initialized. The stream wrapper will throw an error which is better than silently continue. --- apps/files_encryption/lib/proxy.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 3b9dcbe776..31723ae764 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -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 ) {