X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2FDXUtil.pm;h=ed714fe82c11b0862ef8d7051b4349e1e66f81d6;hb=06963a9fca5e08982934c10946b8452f13feba2c;hp=4246754832f4eb80fe99f7e5a77944e31b32844d;hpb=888290f339e2ee00894445fecb14f0b506d12368;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 */-)