diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-07-21 20:29:11 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-07-21 20:29:11 +0200 |
commit | 8bed3021bd0e78105f74d0ff2d948bf720eb2e4d (patch) | |
tree | 20f20df6dff140793eb38cfa1d6a89e7eb4f7da2 /lib/private/IntegrityCheck | |
parent | 5b604eaeaba7d5ee5dd12a92f37c9e8e7519c9c2 (diff) | |
download | nextcloud-server-8bed3021bd0e78105f74d0ff2d948bf720eb2e4d.tar.gz nextcloud-server-8bed3021bd0e78105f74d0ff2d948bf720eb2e4d.zip |
Exclude .rnd files from integrity check
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/IntegrityCheck')
-rw-r--r-- | lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php b/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php index 26f4a56d15a..a82c74fd138 100644 --- a/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php +++ b/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php @@ -43,6 +43,7 @@ class ExcludeFileByNameFilterIterator extends \RecursiveFilterIterator { 'Thumbs.db', // Microsoft Windows '.directory', // Dolphin (KDE) '.webapp', // Gentoo/Funtoo & derivatives use a tool known as webapp-config to manage web-apps. + '.rnd', ]; /** @@ -54,7 +55,7 @@ class ExcludeFileByNameFilterIterator extends \RecursiveFilterIterator { */ private $excludedFilenamePatterns = [ '/^\.webapp-nextcloud-(\d+\.){2}(\d+)(-r\d+)?$/', // Gentoo/Funtoo & derivatives use a tool known as webapp-config to manage wep-apps. - ]; + ]; /** * @return bool @@ -68,12 +69,12 @@ class ExcludeFileByNameFilterIterator extends \RecursiveFilterIterator { } $currentFileName = $current->getFilename(); - if (in_array($currentFileName, $this->excludedFilenames, true)){ + if (in_array($currentFileName, $this->excludedFilenames, true)) { return false; } - foreach ($this->excludedFilenamePatterns as $pattern){ - if (preg_match($pattern, $currentFileName) > 0){ + foreach ($this->excludedFilenamePatterns as $pattern) { + if (preg_match($pattern, $currentFileName) > 0) { return false; } } |