fixed lines in messages containing just '0'
[spider.git] / perl / DXUtil.pm
index 3b701ebbc6da5b83953782c99e14fc9a6d4d548e..e497a6e9df6c2febbca7c1aa3354ef2e234f7d11 100644 (file)
@@ -346,8 +346,9 @@ sub is_callsign
 # check that a PC protocol field is valid text
 sub is_pctext
 {
+       return undef unless length $_[0];
        return undef if $_[0] =~ /[\x00-\x08\x0a-\x1f\x80-\x9f]/;
-       return $_[0];
+       return 1;
 }
 
 # check that a PC prot flag is fairly valid (doesn't check the difference between 1/0 and */-)