[Pkg-owncloud-commits] [owncloud] 85/104: don't try to encrypt/decrypt cache chunks or files in the trash bin
David Prévot
taffit at moszumanska.debian.org
Sat Jan 18 13:33:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 3c7541e97cd3a2db3e56288062bbd9e902e77e76
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Wed Jan 15 14:29:33 2014 +0100
don't try to encrypt/decrypt cache chunks or files in the trash bin
---
apps/files_encryption/lib/proxy.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 9666749..fc48354 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -258,8 +258,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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list