diff options
author | Björn Schießle <schiessle@owncloud.com> | 2014-05-13 09:25:16 -0400 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2014-05-13 09:25:16 -0400 |
commit | b8de1e5d716c416beae328506e368cd0554509e1 (patch) | |
tree | 8b13942c27547f4c4266699efc445b0bfe96296d /apps/files_encryption/lib/util.php | |
parent | e934129bf6125c50ccede651b544d7ab07d5378a (diff) | |
parent | a9ac11718e62017c70682f99eb35b43b1ef9c498 (diff) | |
download | nextcloud-server-b8de1e5d716c416beae328506e368cd0554509e1.tar.gz nextcloud-server-b8de1e5d716c416beae328506e368cd0554509e1.zip |
Merge pull request #8398 from owncloud/enc_backup_keys
backup the encryption key after the encryption was disabled
Diffstat (limited to 'apps/files_encryption/lib/util.php')
-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 37fdcaceaa5..b96e4590507 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; |