mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
MySQL vars like tmpdir need quoting
This commit is contained in:
@ -12,7 +12,7 @@ if ($in{'save'} || !@d) {
|
|||||||
foreach $v (keys %in) {
|
foreach $v (keys %in) {
|
||||||
if ($v =~ /^value_(\S+)$/) {
|
if ($v =~ /^value_(\S+)$/) {
|
||||||
&execute_sql_logged($master_db,
|
&execute_sql_logged($master_db,
|
||||||
"set global $1 = $in{$v}");
|
"set global $1 = '$in{$v}'");
|
||||||
$first ||= $1;
|
$first ||= $1;
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user