Skip to content
Snippets Groups Projects
Commit 9cee8ff9 authored by Joas Schilling's avatar Joas Schilling
Browse files

Only set is encrypted when encryption is enabled

parent 9ccf94ca
Branches
No related tags found
No related merge requests found
......@@ -521,7 +521,7 @@ class Encryption extends Wrapper {
if ($preserveMtime) {
$this->touch($targetInternalPath, $sourceStorage->filemtime($sourceInternalPath));
}
$isEncrypted = $this->mount->getOption('encrypt', true) ? 1 : 0;
$isEncrypted = $this->encryptionManager->isEnabled() && $this->mount->getOption('encrypt', true) ? 1 : 0;
// in case of a rename we need to manipulate the source cache because
// this information will be kept for the new target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment