From 7a9b527f54d38c1ac1776f08aa619f4f3f4588a3 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Mon, 15 Feb 2021 13:24:58 +0100 Subject: [PATCH] vzdump: command line: make sure mailto is comma-separated In addition to relying on shellquote(), it's still nice to avoid printing out unnecessary whitespaces, especially newlines. Signed-off-by: Fabian Ebner --- PVE/VZDump/Common.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/VZDump/Common.pm b/PVE/VZDump/Common.pm index eceea7f..5d93b51 100644 --- a/PVE/VZDump/Common.pm +++ b/PVE/VZDump/Common.pm @@ -394,6 +394,7 @@ sub command_line { $cmd .= " --$p " . PVE::Tools::shellquote($path); } } else { + $v = join(",", PVE::Tools::split_list($v)) if $p eq 'mailto'; $v = PVE::JSONSchema::print_property_string($v, 'prune-backups') if $p eq 'prune-backups';