aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-04-22 16:43:10 +0200
committerRobin Appelman <robin@icewind.nl>2020-04-23 13:34:55 +0200
commit436908ee3fa25ffa88f47317d532fcbf451cb56a (patch)
treed773441c7046eb7602aa843190d5b9cccd32d8cd /lib
parent3c2dd082640d2429c81639156291cb5978f60eec (diff)
downloadnextcloud-server-436908ee3fa25ffa88f47317d532fcbf451cb56a.tar.gz
nextcloud-server-436908ee3fa25ffa88f47317d532fcbf451cb56a.zip
filter out blacklisted files in getDirectoryContent
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Common.php2
1 files changed, 1 insertions, 1 deletions
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);
}