X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=e497a6e9df6c2febbca7c1aa3354ef2e234f7d11;hb=5c15f6e5521944f56427ef069f449739ce84ce9f;hp=3b701ebbc6da5b83953782c99e14fc9a6d4d548e;hpb=9ac37bd8bf268d391c075ced5675ca5ae5542916;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 3b701ebb..e497a6e9 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -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 */-)