Ignore:
Timestamp:
10/07/05 11:11:17 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Cosmetic "bugfix" on IP-based quicksearches - don't display
extra notes on query string.

File:
1 edited

Legend:

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

    r286 r288  
    313313        queryResults($sql, $webvar{page}, 1);
    314314      } else {
    315         print "Finding all blocks with netmask /$maskbits, leading octet(s) $net<br>\n";
     315        #print "Finding all blocks with netmask /$maskbits, leading octet(s) $net<br>\n";
    316316        # Partial match;  beginning of subnet and maskbits are provided
    317317        $sql = "select * from searchme where text(cidr) like '$net%' and ".
     
    323323    } elsif ($query =~ /^(\d{1,3}\.){3}\d{1,3}$/) {
    324324      # Specific IP address match
    325       print "4-octet pattern found;  finding netblock containing IP $query<br>\n";
     325      #print "4-octet pattern found;  finding netblock containing IP $query<br>\n";
    326326      my ($net,$ip) = ($query =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.)(\d{1,3})/);
    327327      my $sfor = new NetAddr::IP $query;
     
    335335      }
    336336    } elsif ($query =~ /^(\d{1,3}\.){1,3}\d{1,3}\.?$/) {
    337       print "Finding matches with leading octet(s) $query<br>\n";
     337      #print "Finding matches with leading octet(s) $query<br>\n";
    338338      $sql = "select * from searchme where text(cidr) like '$query%'";
    339339      my $count = countRows($sql);
Note: See TracChangeset for help on using the changeset viewer.