diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-23 17:06:55 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-23 17:18:48 +0200 |
commit | 2646bccb83d06f575722e3fb8c5bd87ed42775c9 (patch) | |
tree | d5b18df57578c08efe6389bf3ee2f94b6b31a856 /lib | |
parent | 2990b0e07e418577d55368c21200ada86c381b51 (diff) | |
download | nextcloud-server-2646bccb83d06f575722e3fb8c5bd87ed42775c9.tar.gz nextcloud-server-2646bccb83d06f575722e3fb8c5bd87ed42775c9.zip |
update share keys if file gets copied
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/wrapper/encryption.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index 089da941756..0f6096adb76 100644 --- a/lib/private/files/storage/wrapper/encryption.php +++ b/lib/private/files/storage/wrapper/encryption.php @@ -256,9 +256,9 @@ class Encryption extends Wrapper { $result = $this->storage->copy($path1, $path2); if ($result) { $target = $this->getFullPath($path2); - $encryptionModule = $this->getEncryptionModule($path2); - if ($encryptionModule) { - $this->keyStorage->copyKeys($source, $target); + $this->keyStorage->copyKeys($source, $target); + if (dirname($source) !== dirname($target) && $this->util->isFile($target)) { + $this->update->update($target); } } |