unrolled the checking in decode_input a bit
[spider.git] / perl / Spot.pm
index e7a619e0c7e0e42b272b35e2ed1175d5ef3b7103..e2b5c7eff3cd889f9780b153fa02d0049f10950e 100644 (file)
@@ -215,7 +215,8 @@ sub dup
        chomp $text;
        $text = substr($text, 0, $duplth) if length $text > $duplth; 
        unpad($text);
-       my $dupkey = "X$freq|$call|$d|$text";
+       $text =~ s/[^a-zA-Z0-9]//g;
+       my $dupkey = "X$freq|$call|$d|\L$text";
        return DXDupe::check($dupkey, $main::systime+$dupage);
 }