]> source.dussan.org Git - nextcloud-server.git/commitdiff
filter out blacklisted files in getDirectoryContent
authorRobin Appelman <robin@icewind.nl>
Wed, 22 Apr 2020 14:43:10 +0000 (16:43 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 23 Apr 2020 11:34:55 +0000 (13:34 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Storage/Common.php

index 86252f5c3dd6ea78f9384fc1a4d57bbdf1785a80..93e13937f5cab3224677bb25bdb41589250be342 100644 (file)
@@ -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);
                                }