From 436908ee3fa25ffa88f47317d532fcbf451cb56a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 22 Apr 2020 16:43:10 +0200 Subject: [PATCH] filter out blacklisted files in getDirectoryContent Signed-off-by: Robin Appelman --- lib/private/Files/Storage/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 86252f5c3dd..93e13937f5c 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -874,7 +874,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage { if (is_resource($dh)) { $basePath = rtrim($directory, '/'); while (($file = readdir($dh)) !== false) { - if (!Filesystem::isIgnoredDir($file)) { + if (!Filesystem::isIgnoredDir($file) && !Filesystem::isFileBlacklisted($file)) { $childPath = $basePath . '/' . trim($file, '/'); yield $this->getMetaData($childPath); }