mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Add quotes around params where needed
https://github.com/webmin/webmin/issues/2572
This commit is contained in:
@@ -85,7 +85,11 @@ else {
|
||||
if ($in{"protocol_$i"}) {
|
||||
push(@opts, "protocol=".$in{"protocol_$i"});
|
||||
}
|
||||
push(@opts, split(/\s+/, $in{"others_$i"}));
|
||||
foreach my $oo (split(/\s+/, $in{"others_$i"})) {
|
||||
my ($n, $v) = split(/=/, $oo, 2);
|
||||
$v = "\"$v\"" if ($v =~ /\s|,|=/);
|
||||
push(@opts, "$n=$v");
|
||||
}
|
||||
push(@actions, $in{"action_$i"}."[".join(", ", @opts)."]");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user