chomp serial number to remove LF which ZTE send
[perl-cwmp.git] / lib / CWMP / Request.pm
index 99770fa..0cea935 100644 (file)
@@ -31,6 +31,7 @@ our $rules =  [
                'ID' => sub {
                        my ($tag_name, $tag_hash, $context, $parent_data) = @_;
                        $state->{ID} = $tag_hash->{_content};
+                       chomp( $state->{ID} );
                },
 
                'DeviceId' => sub {