summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-05-12 09:12:38 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-05-12 09:12:38 +0200
commitb11c0c533e8d447e9193cd618bf11023e6216863 (patch)
tree983772cd3c2c402b435d708e6a3edc6cd9546236 /lib
parentdeeeca69fe232539e1d03560801dae5cbd7d5dbb (diff)
parent9dd517071e60ff3677ea79e84577f3556ac7d4cc (diff)
downloadnextcloud-server-b11c0c533e8d447e9193cd618bf11023e6216863.tar.gz
nextcloud-server-b11c0c533e8d447e9193cd618bf11023e6216863.zip
Merge pull request #16233 from owncloud/enc_fix_check_if_file_is_excluded
fix check if a file is excluded from encryption
Diffstat (limited to 'lib')
-rw-r--r--lib/private/encryption/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/encryption/util.php b/lib/private/encryption/util.php
index 032ac83f37e..45d4dd90d9f 100644
--- a/lib/private/encryption/util.php
+++ b/lib/private/encryption/util.php
@@ -357,7 +357,7 @@ class Util {
public function isExcluded($path) {
$normalizedPath = \OC\Files\Filesystem::normalizePath($path);
$root = explode('/', $normalizedPath, 4);
- if (count($root) > 2) {
+ if (count($root) > 1) {
//detect system wide folders
if (in_array($root[1], $this->excludedPaths)) {