X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=data%2FPVE%2FTools.pm;h=985b31ef4ec4a1523cda4e669846a719068cb0f1;hp=5e8e7bf46460c1abfa5fd199e3bcca14c5176cbe;hb=d2b0374d4888b5aad6f195db202fbd46569b153c;hpb=2026f4b5b4d17486b59f9ee80445414930fa86ce diff --git a/data/PVE/Tools.pm b/data/PVE/Tools.pm index 5e8e7bf..985b31e 100644 --- a/data/PVE/Tools.pm +++ b/data/PVE/Tools.pm @@ -351,7 +351,9 @@ sub run_command { sub split_list { my $listtxt = shift || ''; - $listtxt =~ s/[,;\0]/ /g; + return split (/\0/, $listtxt) if $listtxt =~ m/\0/; + + $listtxt =~ s/[,;]/ /g; $listtxt =~ s/^\s+//; my @data = split (/\s+/, $listtxt);