Merge pull request #6471 from nextcloud/enh/noid/get-dir-of-dots

scandir: get rid of dots
This commit is contained in:
Simon L.
2025-05-30 10:29:41 +02:00
committed by GitHub

View File

@@ -1025,6 +1025,8 @@ class ConfigurationManager
if ($dir === false) {
return $cc;
}
// Get rid of dots from the scandir command
$dir = array_diff($dir, array('..', '.'));
foreach ($dir as $id) {
$filePath = DataConst::GetCommunityContainersDirectory() . '/' . $id . '/' . $id . '.json';
$fileContents = apcu_fetch($filePath);