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 539d538 commit c94e930
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 @@ -731,7 +731,7 @@ public static function parseIniSettings(string $manual_attributes): array
$row = trim($row);
$pos = strpos($row, ']');
if ($pos !== false && str_starts_with($row, '[')) {
$row = "\n" . substr($row, 0, $pos);
$row = "\n" . substr($row, 0, $pos+1);
}
}
unset($row);
Expand All @@ -743,7 +743,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) || !str_contains($section_name, '[')){
if(empty($section_name) || !str_contains($section_name, '=')){
// Noname section
$section_name = ' ';
}else{
Expand Down

0 comments on commit c94e930

Please sign in to comment.