summaryrefslogtreecommitdiffstats
path: root/lib/private/encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-05-11 12:38:59 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-05-11 12:38:59 +0200
commit9dd517071e60ff3677ea79e84577f3556ac7d4cc (patch)
tree00df68664c1d1012e0328db4fd82fc32f76e0016 /lib/private/encryption
parentebf3953908a8dfdb754a5031d69326c6b83cf609 (diff)
downloadnextcloud-server-9dd517071e60ff3677ea79e84577f3556ac7d4cc.tar.gz
nextcloud-server-9dd517071e60ff3677ea79e84577f3556ac7d4cc.zip
fix check if file is excluded from encryption
Diffstat (limited to 'lib/private/encryption')
-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)) {