mirror of
https://git.proxmox.com/git/pve-common
synced 2025-05-29 13:52:20 +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 {
|
sub split_list {
|
||||||
my $listtxt = shift || '';
|
my $listtxt = shift || '';
|
||||||
|
|
||||||
$listtxt =~ s/[,;\0]/ /g;
|
return split (/\0/, $listtxt) if $listtxt =~ m/\0/;
|
||||||
|
|
||||||
|
$listtxt =~ s/[,;]/ /g;
|
||||||
$listtxt =~ s/^\s+//;
|
$listtxt =~ s/^\s+//;
|
||||||
|
|
||||||
my @data = split (/\s+/, $listtxt);
|
my @data = split (/\s+/, $listtxt);
|
||||||
|
Loading…
Reference in New Issue
Block a user