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