X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FAGWMsg.pm;h=08660d626d987ea7de5b036c9ca771bf06ccaaaa;hb=96d6698d3f043a960ec5ef387747e5b470ac93b3;hp=4a36d49a6a40536468e1119768e5fb1773b72448;hpb=5c15f6e5521944f56427ef069f449739ce84ce9f;p=spider.git diff --git a/perl/AGWMsg.pm b/perl/AGWMsg.pm index 4a36d49a..08660d62 100644 --- a/perl/AGWMsg.pm +++ b/perl/AGWMsg.pm @@ -266,6 +266,7 @@ sub _decode $data = '' unless defined $data; if ($sort eq 'D') { my $d = unpack "Z*", $data; + $d =~ s/\cJ//g; # remove all new line characters $d =~ s/\cM$//; dbg("AGW Data In port: $port pid: $pid '$from'->'$to' length: $len \"$d\"") if isdbg('agw'); my $conn = _find($from eq $main::mycall ? $to : $from); @@ -295,6 +296,7 @@ sub _decode } } elsif ($sort eq 'I' || $sort eq 'S' || $sort eq 'U' || $sort eq 'M' || $sort eq 'T') { my $d = unpack "Z*", $data; + $d =~ s/\cJ//g; # remove all new line characters $d =~ s/\cM$//; my @lines = split /\cM/, $d;