Ignore:
Timestamp:
11/15/11 17:20:49 (13 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Minor bugfixes for IPv6

File:
1 edited

Legend:

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

    r445 r506  
    437437    # Prefix subblocks with "Sub "
    438438    my @row = ( (($data[2] =~ /^.r$/) ? 'Sub ' : '').
    439         qq(<a href="/ip/cgi-bin/main.cgi?action=edit&block=$data[0]">$data[0]</a>),
     439        qq(<a href="/ip/cgi-bin/main.cgi?action=edit&block=$data[0]&reallyblock=1">$data[0]</a>),
    440440        $data[1], $disp_alloctypes{$data[2]}, $data[3],
    441441        ($data[4] eq 'y' ? ($ncust == 0 ? 'Yes<small>*</small>' : 'Yes') : 'No'), $data[5]);
     
    996996  # Two cases:  block is a netblock, or block is a static IP from a pool
    997997  # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data
    998   if ($webvar{block} =~ /\/32$/) {
     998  if ($webvar{block} =~ /\/32$/ && !$webvar{reallyblock}) {
    999999    $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata,oldcustid from poolips where ip='$webvar{block}'";
    10001000  } else {
Note: See TracChangeset for help on using the changeset viewer.