X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=ed714fe82c11b0862ef8d7051b4349e1e66f81d6;hb=fa9e414f691e4e9a80c80eb54cb7b1e971976b22;hp=4246754832f4eb80fe99f7e5a77944e31b32844d;hpb=0aaec2fed8977d5e1cd02a4f1432bdde135a1044;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 42467548..ed714fe8 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -346,7 +346,8 @@ sub is_callsign # check that a PC protocol field is valid text sub is_pctext { - return $_[0] =~ /^[\x09\x20-\xFF]+$/; + return undef if $_[0] =~ /[\x00-\x08\x0a-\x1f\xf0-\xff]/; + return $_[0]; } # check that a PC prot flag is fairly valid (doesn't check the difference between 1/0 and */-)