diff --git a/src/Core/System/Util.php b/src/Core/System/Util.php index 7e29d93b1..eb3904d6b 100644 --- a/src/Core/System/Util.php +++ b/src/Core/System/Util.php @@ -732,7 +732,7 @@ public static function parseIniSettings(string $manual_attributes): array $row = trim($row); $pos = strpos($row, ']'); if ($pos !== false && strpos($row, '[') === 0) { - $row = "\n" . substr($row, 0, $pos); + $row = "\n" . substr($row, 0, $pos+1); } } unset($row); @@ -744,7 +744,7 @@ public static function parseIniSettings(string $manual_attributes): array foreach ($sections as $section) { $data_rows = explode("\n", trim($section)); $section_name = trim($data_rows[0] ?? ''); - if(empty($section_name) || strpos($section_name, '[') === false){ + if(empty($section_name) || strpos($section_name, '=') !== false){ // Noname section $section_name = ' '; }else{