diff options
Diffstat (limited to 'apps/files_encryption/lib/proxy.php')
-rw-r--r-- | apps/files_encryption/lib/proxy.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index ba78c81aa35..3ee7d83f04c 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -56,10 +56,12 @@ class Proxy extends \OC_FileProxy { $path = \OC\Files\Filesystem::normalizePath($path); + $parts = explode('/', $path); + // we only encrypt/decrypt files in the files and files_versions folder if( strpos($path, '/' . $uid . '/files/') !== 0 && - strpos($path, '/' . $uid . '/files_versions/') !== 0) { + !($parts[2] === 'files_versions' && \OCP\User::userExists($parts[1]))) { return true; } |