fix warning in SIP messages decode
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 20 Oct 2023 04:37:13 +0000 (06:37 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 20 Oct 2023 04:37:13 +0000 (06:37 +0200)
scripts/RFID-JSONP-server.pl

index 5440763..f29ada0 100755 (executable)
@@ -138,7 +138,7 @@ send_again:
        }
        foreach ( split(/\|/, $in ) ) {
                my ( $f, $v ) = ( $1, $2 ) if m/([A-Z]{2})(.+)/;
-               $hash->{$f} = decode('utf-8',$v);
+               $hash->{$f} = decode('utf-8',$v) if $f;
        }
 
        warn "# sip2 hash response ",dump($hash);