From aa2eaee95e867d3ca33d1ff8c9617fa7e35a4bac Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 8 Nov 2017 17:12:59 +0100 Subject: [PATCH] TT#24097 Use a regex for split Change-Id: Id8543d7d792e35a736c770fc87a20fa399d68bad --- utils/rtpengine-ng-client | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/rtpengine-ng-client b/utils/rtpengine-ng-client index c6dc58a81..70a8335e2 100755 --- a/utils/rtpengine-ng-client +++ b/utils/rtpengine-ng-client @@ -49,19 +49,19 @@ my $cmd = shift(@ARGV) or die; my %packet = (command => $cmd); -for my $x (split(',', 'from-tag,to-tag,call-id,transport protocol,media address,ICE,address family,DTLS,via-branch,media address')) { +for my $x (split(/,/, 'from-tag,to-tag,call-id,transport protocol,media address,ICE,address family,DTLS,via-branch,media address')) { defined($options{$x}) and $packet{$x} = \$options{$x}; } -for my $x (split(',', 'TOS,delete-delay')) { +for my $x (split(/,/, 'TOS,delete-delay')) { defined($options{$x}) and $packet{$x} = $options{$x}; } -for my $x (split(',', 'trust address,symmetric,asymmetric,force,strict source,media handover,sip source address,reset,port latching')) { +for my $x (split(/,/, 'trust address,symmetric,asymmetric,force,strict source,media handover,sip source address,reset,port latching')) { defined($options{$x}) and push(@{$packet{flags}}, $x); } -for my $x (split(',', 'origin,session connection')) { +for my $x (split(/,/, 'origin,session connection')) { defined($options{'replace-' . $x}) and push(@{$packet{replace}}, $x); } -for my $x (split(',', 'rtcp-mux,SDES')) { +for my $x (split(/,/, 'rtcp-mux,SDES')) { defined($options{$x}) && ref($options{$x}) eq 'ARRAY' and $packet{$x} = $options{$x}; }