Skip to content

Commit

Permalink
Handle a space before ;
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed May 28, 2022
1 parent b5730ce commit 5e32188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualmin-nginx-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ sub read_config_file
$addto = pop(@stack);
$addto->[@$addto-1]->{'eline'} = $lnum;
}
elsif ($l =~ /^\s*(\S+)((\s+("([^"]*)"|'([^']*)'|[^ ;]+))*);/) {
elsif ($l =~ /^\s*(\S+)((\s+("([^"]*)"|'([^']*)'|[^ ;]+))*)\s*;/) {
# Found a directive
my ($name, $value) = ($1, $2);
my @words = &split_words($value);
Expand Down

0 comments on commit 5e32188

Please sign in to comment.