fix bug 790: encode description before writing to syslog

This commit is contained in:
Dietmar Maurer 2015-10-29 10:49:08 +01:00
parent a343d0dff0
commit 9ac5db408d

View File

@ -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');