Changeset 78 for trunk


Ignore:
Timestamp:
09/10/25 12:23:21 (5 days ago)
Author:
Kris Deugau
Message:

/trunk/dnsbl

Remove a duplicate instantiation
Add a little QoL by way of automatically setting the org on a subblock to
match the parent when not provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dnsbl/dnsbl.cgi

    r76 r78  
    4646}
    4747
    48 my $dnsbl = new DNSBL;
    4948# here be drag'ns, should theoretically be $DNSBL::maxlvl, but we
    5049# only have up to level 4 in the report HTML/template
     
    159158  for (my $i = 0; $i <= $maxlvl; $i++) {
    160159    my $orgn = "org$i";
     160    if ($i > 0 && !$webvar{orgn}) {
     161      # use parent org instead of "null" org for subblocks
     162      $webvar{$orgn} = $webvar{"org".($i-1)};
     163    }
    161164    my $blockn = "block$i";
    162165    my $commentn = "comment$i";
Note: See TracChangeset for help on using the changeset viewer.