diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-05-05 18:04:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 18:04:06 +0200 |
commit | fe24091ffb62191237709ae8e5a2cf6cc50f3d56 (patch) | |
tree | 960d13d91a3d3049e44bae31be55b2267003301e /lib | |
parent | 841a4a4e61a764b433388d8046fed2598b55dfd7 (diff) | |
parent | 1258caeab7dec7510781ba7b575390459e2e61e5 (diff) | |
download | nextcloud-server-fe24091ffb62191237709ae8e5a2cf6cc50f3d56.tar.gz nextcloud-server-fe24091ffb62191237709ae8e5a2cf6cc50f3d56.zip |
Merge pull request #32110 from plumbeo/binary-encoding-4
Save encrypted files in binary format
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Stream/Encryption.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php index e1233e76b93..0f1838c97c8 100644 --- a/lib/private/Files/Stream/Encryption.php +++ b/lib/private/Files/Stream/Encryption.php @@ -259,7 +259,6 @@ class Encryption extends Wrapper { $this->cache = ''; $this->writeFlag = false; $this->fileUpdated = false; - $this->unencryptedBlockSize = $this->encryptionModule->getUnencryptedBlockSize($this->signed); if ( $mode === 'w' @@ -284,6 +283,7 @@ class Encryption extends Wrapper { $accessList = $this->file->getAccessList($sharePath); } $this->newHeader = $this->encryptionModule->begin($this->fullPath, $this->uid, $mode, $this->header, $accessList); + $this->unencryptedBlockSize = $this->encryptionModule->getUnencryptedBlockSize($this->signed); if ( $mode === 'w' |