summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/proxy.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-01-17 14:47:29 +0100
committerRobin Appelman <icewind@owncloud.com>2014-01-17 14:47:29 +0100
commit5cb08bb9cb6cf603d47a124ffa0ea60881f7de51 (patch)
tree89ac0ff4115dc175cb79b35b4df837dab3f7df45 /apps/files_encryption/lib/proxy.php
parent299bb4d99db935bb529a30fe6ae0c9bc72344d69 (diff)
parentdb353e14cce316b271d3bfcfdbc6989e146d4517 (diff)
downloadnextcloud-server-5cb08bb9cb6cf603d47a124ffa0ea60881f7de51.tar.gz
nextcloud-server-5cb08bb9cb6cf603d47a124ffa0ea60881f7de51.zip
Merge branch 'master' into fileinfo
Conflicts: tests/lib/files/cache/cache.php
Diffstat (limited to 'apps/files_encryption/lib/proxy.php')
-rw-r--r--apps/files_encryption/lib/proxy.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index c1b60799e64..0b7e066f2e2 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -255,8 +255,8 @@ class Proxy extends \OC_FileProxy {
// split the path parts
$pathParts = explode('/', $path);
- // FIXME: handling for /userId/cache used by webdav for chunking. The cache chunks are NOT encrypted
- if (isset($pathParts[2]) && $pathParts[2] === 'cache') {
+ // don't try to encrypt/decrypt cache chunks or files in the trash bin
+ if (isset($pathParts[2]) && ($pathParts[2] === 'cache' || $pathParts[2] === 'files_trashbin')) {
return $result;
}