mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
check if we are writing to user/files, otherwise skip encryption
This commit is contained in:
parent
e9ce704f17
commit
d3af7a9aa4
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue