]> dxcluster.org Git - spider.git/commitdiff
prevent empty PC41 fields from polluting data base
authorminima <minima>
Fri, 14 Sep 2001 00:13:21 +0000 (00:13 +0000)
committerminima <minima>
Fri, 14 Sep 2001 00:13:21 +0000 (00:13 +0000)
perl/DXProt.pm

index 84ce989344c2efa35f4ec42879562d6e336b20ef..181c75b0f36cebbd1298ba9195f9a914589a30d2 100644 (file)
@@ -969,7 +969,7 @@ sub normal
 #                      my $ref = Route::get($call) || Route->new($call);
 #                      return unless $self->in_filter_route($ref);
 
-                       if ($field[3] eq $field[2]) {
+                       if ($field[3] eq $field[2] || field[3] =~ /^\s*$/) {
                                dbg('PCPROT: invalid value') if isdbg('chanerr');
                                return;
                        }