scandir: get rid of dots

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-05-30 10:24:24 +02:00
parent 2822cf2773
commit 21b9c19c5d

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);