Skip to content

Commit

Permalink
Поправил баг применения дополнительных параметров. Был сломан парсер
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Oct 2, 2024
1 parent dcf97d2 commit e9fa64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/System/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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{
Expand Down

0 comments on commit e9fa64e

Please sign in to comment.