mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-12 09:35:55 +08:00
scandir: get rid of dots
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
2822cf2773
commit
21b9c19c5d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue