]> source.dussan.org Git - nextcloud-server.git/commitdiff
we can also have a path user/cache/...
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 19 Dec 2013 09:32:56 +0000 (10:32 +0100)
committerVincent Petry <pvince81@owncloud.com>
Thu, 19 Dec 2013 14:58:10 +0000 (15:58 +0100)
apps/files_encryption/lib/helper.php

index 17bcac5c585dd050c5f82546f77b33892094c257..f176c7714fd3908685a21e32dbdd2771c3d77008 100755 (executable)
@@ -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') {
+               if (count($split) < 2 || $split[1] !== 'files' || $split[1] !== 'cache') {
                        return false;
                }