Skip to content
Snippets Groups Projects
Commit d3af7a9a authored by Björn Schießle's avatar Björn Schießle
Browse files

check if we are writing to user/files, otherwise skip encryption

parent e9ce704f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment