mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-21 10:50:10 +00:00
Merge pull request #6471 from nextcloud/enh/noid/get-dir-of-dots
scandir: get rid of dots
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user