diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-29 15:00:57 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-13 12:35:25 +0200 |
commit | a9ac11718e62017c70682f99eb35b43b1ef9c498 (patch) | |
tree | d4874aca27972f45acdb756ba2200f886617141b /apps/files_encryption/lib | |
parent | 254fa5eb22efa5ba572702064377a6ad9eec9a53 (diff) | |
download | nextcloud-server-a9ac11718e62017c70682f99eb35b43b1ef9c498.tar.gz nextcloud-server-a9ac11718e62017c70682f99eb35b43b1ef9c498.zip |
backup the encryption key after the encryption was disabled so that the user
can restore them if needed
Diffstat (limited to 'apps/files_encryption/lib')
-rw-r--r-- | apps/files_encryption/lib/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 6372ab31b6e..27b4db9253a 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -788,8 +788,8 @@ class Util { } if ($successful) { - $this->view->deleteAll($this->keyfilesPath); - $this->view->deleteAll($this->shareKeysPath); + $this->view->rename($this->keyfilesPath, $this->keyfilesPath . '.backup'); + $this->view->rename($this->shareKeysPath, $this->shareKeysPath . '.backup'); } \OC_FileProxy::$enabled = true; |