summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-07-23 15:18:59 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-23 15:18:59 +0200
commit9cee8ff9f8729c22030c9c5b59e13dfd5796c956 (patch)
tree30eb5dfd9e17ff83ddff68bea29d3c94148e0a92 /lib/private/files/storage
parent9ccf94ca06806ad5312d3ac06b8b25388f3ec5f4 (diff)
downloadnextcloud-server-9cee8ff9f8729c22030c9c5b59e13dfd5796c956.tar.gz
nextcloud-server-9cee8ff9f8729c22030c9c5b59e13dfd5796c956.zip
Only set is encrypted when encryption is enabled
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r--lib/private/files/storage/wrapper/encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php
index 61290791faa..af3d14082c4 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/lib/private/files/storage/wrapper/encryption.php
@@ -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