diff options
-rw-r--r-- | apps/files_encryption/lib/proxy.php | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | config/.htaccess | 0 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 51de8fc7e41..126a593ee3c 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -51,11 +51,17 @@ class Proxy extends \OC_FileProxy { */ private function isExcludedPath($path, $uid) { + $view = new \OC\Files\View(); + // files outside of the files-folder are excluded if(strpos($path, '/' . $uid . '/files') !== 0) { return true; } + if (!$view->file_exists($path)) { + $path = dirname($path); + } + // we don't encrypt server-to-server shares list($storage, ) = \OC\Files\Filesystem::resolvePath($path); if ($storage instanceof OCA\Files_Sharing\External\Storage) { diff --git a/config/.htaccess b/config/.htaccess index 2421e9a1631..2421e9a1631 100644..100755 --- a/config/.htaccess +++ b/config/.htaccess |