Skip to content

Commit

Permalink
Only set is encrypted when encryption is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen committed Jul 23, 2015
1 parent 9ccf94c commit 9cee8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/files/storage/wrapper/encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ private function copyBetweenStorage(Storage $sourceStorage, $sourceInternalPath,
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
Expand Down

0 comments on commit 9cee8ff

Please sign in to comment.