aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-12-19 11:15:59 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-12-19 19:43:57 +0100
commit517a55a437b5c5f455a3b294a80709345e7625ec (patch)
tree829ce586f0e688a636833c8954dec182d14357ab /apps/files_encryption/lib
parentfe7fb66ef871df59e5a0327817d06150aa803e99 (diff)
downloadnextcloud-server-517a55a437b5c5f455a3b294a80709345e7625ec.tar.gz
nextcloud-server-517a55a437b5c5f455a3b294a80709345e7625ec.zip
tests added
Diffstat (limited to 'apps/files_encryption/lib')
-rwxr-xr-xapps/files_encryption/lib/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/helper.php b/apps/files_encryption/lib/helper.php
index f176c7714fd..08941077258 100755
--- a/apps/files_encryption/lib/helper.php
+++ b/apps/files_encryption/lib/helper.php
@@ -274,7 +274,7 @@ class Helper {
$split = explode('/', $trimmed);
// it is not a file relative to data/user/files
- if (count($split) < 2 || $split[1] !== 'files' || $split[1] !== 'cache') {
+ if (count($split) < 2 || ($split[1] !== 'files' && $split[1] !== 'cache')) {
return false;
}