From: Bjoern Schiessle Date: Mon, 14 Oct 2013 15:13:14 +0000 (+0200) Subject: check if we are writing to user/files, otherwise skip encryption X-Git-Tag: v6.0.0alpha2~6^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3af7a9aa47c99116badc3ab2546d04abc1edf6e;p=nextcloud-server.git check if we are writing to user/files, otherwise skip encryption --- 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; }