mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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.
This commit is contained in:
parent
9323ba53b1
commit
0580c232d7
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue