mirror of
https://git.proxmox.com/git/pve-common
synced 2025-05-28 08:43:35 +00:00
do not merge comma separated lists with zero separated lists
This commit is contained in:
parent
2026f4b5b4
commit
d2b0374d48
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user