From 4186bcbdf2db98430d58cebec94cc86a0475259d 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 !== '') {