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
/
Store.pm
diff --git
a/lib/CWMP/Store.pm
b/lib/CWMP/Store.pm
index
6d9a784
..
c5b5da9
100644
(file)
--- a/
lib/CWMP/Store.pm
+++ b/
lib/CWMP/Store.pm
@@
-139,6
+139,7
@@
sub state_to_uid {
my $uid = $state->{DeviceID}->{SerialNumber} ||
confess "no DeviceID.SerialNumber in ",dump( $state );
my $uid = $state->{DeviceID}->{SerialNumber} ||
confess "no DeviceID.SerialNumber in ",dump( $state );
+ chomp($uid);
return $uid;
}
return $uid;
}