diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_encryption/lib/util.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 4f27c2b00fb..b208a808bac 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -472,7 +472,11 @@ class Util { */ public function isEncryptedPath($path) { - $relPath = Helper::stripUserFilesPath($path); + $relPath = Helper::getPathToRealFile($path); + + if ($relPath === false) { + $relPath = Helper::stripUserFilesPath($path); + } $fileKey = Keymanager::getFileKey($this->view, $relPath); |