Ignore:
Timestamp:
03/06/06 16:43:38 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Tweak search system to properly exclude netblocks, and pass
exclusions on to extra-page results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/search.cgi

    r307 r309  
    148148      # we'll be getting a class A anytime soon.  <g>
    149149      $sql .= " $sqlconcat (select $cols from searchme where ".
    150         "$webvar{cidrexclude} cidr='$webvar{cidr}')";
     150        "$webvar{cidrexclude} cidr<<='$webvar{cidr}')";
    151151    } else {
    152152      # Partial match;  beginning of subnet and maskbits are provided
     
    431431                "allcities=$webvar{allcities}&";
    432432          foreach my $key (keys %webvar) {
    433             if ($key =~ /^(?:type|city)\[/) {
     433            if ($key =~ /^(?:type|city)\[/ || $key =~ /exclude$/) {
    434434              print "$key=$webvar{$key}&";
    435435            }
Note: See TracChangeset for help on using the changeset viewer.