summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-05-18 12:51:47 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-05-18 12:51:47 +0200
commit7d492fefae25ce11944ac611229eb3a949908e55 (patch)
tree2ef190121be53fd3c3e8006ba8c54c49f512613c /apps/encryption/lib
parent73a3086945b41afa39debd89481c021934dedb67 (diff)
downloadnextcloud-server-7d492fefae25ce11944ac611229eb3a949908e55.tar.gz
nextcloud-server-7d492fefae25ce11944ac611229eb3a949908e55.zip
also encrypt files in trash bin
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r--apps/encryption/lib/crypto/encryption.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/encryption/lib/crypto/encryption.php b/apps/encryption/lib/crypto/encryption.php
index a4abcd7dc5a..f19638da7ca 100644
--- a/apps/encryption/lib/crypto/encryption.php
+++ b/apps/encryption/lib/crypto/encryption.php
@@ -321,7 +321,7 @@ class Encryption implements IEncryptionModule {
*/
public function shouldEncrypt($path) {
$parts = explode('/', $path);
- if (count($parts) < 3) {
+ if (count($parts) < 4) {
return false;
}
@@ -331,6 +331,9 @@ class Encryption implements IEncryptionModule {
if ($parts[2] == 'files_versions') {
return true;
}
+ if ($parts[2] == 'files_trashbin') {
+ return true;
+ }
return false;
}