From e55c52c07809d9bbcc386d4d473b4b1e9f49628c Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 3 Mar 2016 13:46:41 +0100 Subject: [PATCH] Exclude the assets folder from integrity check We should not scan the assets folder as this can contain user specific content. Partially addresses https://github.com/owncloud/core/issues/22803 --- .../iterator/excludefoldersbypathfilteriterator.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php b/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php index fc261e4bc5..766897e751 100644 --- a/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php +++ b/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php @@ -35,8 +35,9 @@ class ExcludeFoldersByPathFilterIterator extends \RecursiveFilterIterator { $excludedFolders = [ rtrim($root . '/data', '/'), rtrim($root .'/themes', '/'), - rtrim($root.'/config', '/'), - rtrim($root.'/apps', '/'), + rtrim($root . '/config', '/'), + rtrim($root . '/apps', '/'), + rtrim($root . '/assets', '/'), ]; $customDataDir = \OC::$server->getConfig()->getSystemValue('datadirectory', ''); if($customDataDir !== '') {