diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-03-03 13:46:41 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-03-03 16:00:34 +0100 |
commit | 4186bcbdf2db98430d58cebec94cc86a0475259d (patch) | |
tree | 4c1473c4c67cbc10e94252b79045129859272537 | |
parent | 445957a0e2061b8f0b26ea6c859ca72abead3fa5 (diff) | |
download | nextcloud-server-4186bcbdf2db98430d58cebec94cc86a0475259d.tar.gz nextcloud-server-4186bcbdf2db98430d58cebec94cc86a0475259d.zip |
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
-rw-r--r-- | lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php b/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php index fc261e4bc5a..766897e7517 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 !== '') { |