Fix parsing of Bacula sections opened with an equals sign

https://github.com/webmin/webmin/issues/2112#issuecomment-5362249697
This commit is contained in:
Ilia Ross
2026-08-21 00:37:11 +02:00
parent fb790746cf
commit cc62d46677
+9
View File
@@ -165,6 +165,15 @@ if (!defined($config_file_cache{$file})) {
'parent' => $parent };
push(@{$parent->{'members'}}, $dir);
# A line like "Include = {" starts a section, rather
# than setting the value to a brace. The brace must be
# unquoted, so that a real value of "{" is preserved
if ($dir->{'value'} eq "{" && $rest !~ /\S/ &&
/=\s*\{\s*$/) {
$dir->{'value'} = undef;
$rest = "{";
}
if ($rest =~ /\s*{\s*$/) {
# Also start of a section!
$dir->{'type'} = 2;