projects
/
perl-cwmp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
chomp serial number to remove LF which ZTE send
[perl-cwmp.git]
/
lib
/
CWMP
/
Vendor.pm
diff --git
a/lib/CWMP/Vendor.pm
b/lib/CWMP/Vendor.pm
index
e0cb1d3
..
fdbdc1e
100644
(file)
--- a/
lib/CWMP/Vendor.pm
+++ b/
lib/CWMP/Vendor.pm
@@
-59,6
+59,7
@@
sub state2serial {
my $state = shift;
my $serial = $state->{DeviceID}->{SerialNumber} || die "no DeviceID.SerialNumber in ",dump($state);
+ chomp($serial);
my $ip =
$state->{Parameter}->{'.ExternalIPAddress'} ||
$state->{Parameter}->{