summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-05-05 18:04:06 +0200
committerGitHub <noreply@github.com>2022-05-05 18:04:06 +0200
commitfe24091ffb62191237709ae8e5a2cf6cc50f3d56 (patch)
tree960d13d91a3d3049e44bae31be55b2267003301e /lib
parent841a4a4e61a764b433388d8046fed2598b55dfd7 (diff)
parent1258caeab7dec7510781ba7b575390459e2e61e5 (diff)
downloadnextcloud-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.php2
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'