mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
fix(encryption): Take encryption enabled status into account
shouldEncrypt now returns false for all paths if encryption is disabled. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
813507ebd2
commit
0ce7c1e47f
1 changed files with 1 additions and 1 deletions
|
|
@ -446,7 +446,7 @@ class Encryption extends Wrapper {
|
|||
}
|
||||
|
||||
// encryption disabled on write of new file and write to existing unencrypted file -> don't encrypt
|
||||
if (!$encryptionEnabled || !$this->shouldEncrypt($path)) {
|
||||
if (!$this->shouldEncrypt($path)) {
|
||||
if (!$targetExists || !$targetIsEncrypted) {
|
||||
$shouldEncrypt = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue