Fix not to double-quote already quoted param

dfbf446092
This commit is contained in:
Ilia Ross
2025-10-10 12:43:51 +03:00
parent 360236d68b
commit 9a493e581e

View File

@@ -87,7 +87,7 @@ else {
}
foreach my $oo (split(/\s+/, $in{"others_$i"})) {
my ($n, $v) = split(/=/, $oo, 2);
$v = "\"$v\"" if ($v =~ /\s|,|=/);
$v = "\"$v\"" if ($v =~ /\s|,|=/ && $v !~ /['"]/);
push(@opts, "$n=$v");
}
push(@actions, $in{"action_$i"}."[".join(", ", @opts)."]");