Changeset 866 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
05/02/16 17:59:07 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

main.cgi:

  • Don't spew warnings and break the UI when retrieval of the zone list for a netblock fails

IPDB.pm, ipdb-rpc.cgi:

  • Fill out rpc_listPool stub in ipdb-rpc.cgi. The first likely consumer may not want the full UI dataset (with description and "deleteme" flag) so the core sub has been extended with an optional flag that defaults to on.

ipdb-rpc.cgi:

  • Correct argument validation in rpc_deleteBlock()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r855 r866  
    474474  $page->param(maydel => $IPDBacl{$authuser} =~ /d/);
    475475
    476   my $plist = listPool($ip_dbh, $webvar{pool});
     476  my $plist = listPool($ip_dbh, $webvar{pool}, 1);
    477477  $page->param(poolips => $plist);
    478478} # end showPool
     
    11111111    my $revlist = getRevID($ip_dbh, user => $authuser, cidr => $blockinfo->{block},
    11121112        location => $blockinfo->{location});
    1113     $page->param(revlist => $revlist);
     1113    $page->param(revlist => $revlist) if $revlist;
    11141114
    11151115    my $cached;
Note: See TracChangeset for help on using the changeset viewer.