MySQL vars like tmpdir need quoting

This commit is contained in:
Jamie Cameron
2019-08-04 15:09:28 -07:00
parent 771a4a413c
commit 1eecef7ab9

View File

@ -12,7 +12,7 @@ if ($in{'save'} || !@d) {
foreach $v (keys %in) {
if ($v =~ /^value_(\S+)$/) {
&execute_sql_logged($master_db,
"set global $1 = $in{$v}");
"set global $1 = '$in{$v}'");
$first ||= $1;
$count++;
}