mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-04 20:44:29 +00:00
fix bug 790: encode description before writing to syslog
This commit is contained in:
parent
a343d0dff0
commit
9ac5db408d
@ -789,8 +789,12 @@ my $update_vm_api = sub {
|
|||||||
|
|
||||||
my @paramarr = (); # used for log message
|
my @paramarr = (); # used for log message
|
||||||
foreach my $key (keys %$param) {
|
foreach my $key (keys %$param) {
|
||||||
|
if ($key eq 'description') {
|
||||||
|
push @paramarr, "-$key", PVE::Tools::encode_text($param->{$key});
|
||||||
|
} else {
|
||||||
push @paramarr, "-$key", $param->{$key};
|
push @paramarr, "-$key", $param->{$key};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
my $skiplock = extract_param($param, 'skiplock');
|
my $skiplock = extract_param($param, 'skiplock');
|
||||||
raise_param_exc({ skiplock => "Only root may use this option." })
|
raise_param_exc({ skiplock => "Only root may use this option." })
|
||||||
|
Loading…
Reference in New Issue
Block a user