From d3af7a9aa47c99116badc3ab2546d04abc1edf6e Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 14 Oct 2013 17:13:14 +0200 Subject: [PATCH] check if we are writing to user/files, otherwise skip encryption --- apps/files_encryption/lib/proxy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 8621c1ba51d..04795b35670 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -47,7 +47,8 @@ class Proxy extends \OC_FileProxy { */ private static function shouldEncrypt($path) { - if (\OCP\App::isEnabled('files_encryption') === false || Crypt::mode() !== 'server') { + if (\OCP\App::isEnabled('files_encryption') === false || Crypt::mode() !== 'server' || + strpos($path, '/' . \OCP\User::getUser() . '/files') !== 0) { return false; } -- 2.39.5