From 5e32188debf877d550c1a8a0b5786b72a2a0adc2 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 28 May 2022 14:17:01 -0700 Subject: [PATCH] Handle a space before ; --- virtualmin-nginx-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualmin-nginx-lib.pl b/virtualmin-nginx-lib.pl index a65ae64..273c8c3 100644 --- a/virtualmin-nginx-lib.pl +++ b/virtualmin-nginx-lib.pl @@ -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);