Changeset 69 for trunk/dnsbl/dnsbl.cgi


Ignore:
Timestamp:
07/19/18 17:03:38 (6 years ago)
Author:
Kris Deugau
Message:

/trunk/dnsbl

  • Accumulated fixes and tweaks from production
  • Add FindBin to a couple of scripts to make them more portable; they no longer need to be run from the directory they're in, or have system-specific paths hardcoded in either "use lib" or a -I argument
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dnsbl/dnsbl.cgi

    r67 r69  
    2727use Net::DNS;
    2828
     29# push "the directory the script is in" into @INC
     30use FindBin;
     31use lib "$FindBin::RealBin/";
     32
    2933use DNSBL 2.2;
    3034use DNSBLweb;
     
    189193    }
    190194    if (!$dnsbl->blockexists($webvar{$blockn})) {
    191       my $ret = $dnsbl->addblock($webvar{$blockn}, $orgid, $i, $webvar{$excln});
     195      my $ret = $dnsbl->addblock($webvar{$blockn}, $orgid, $i, $webvar{$excln}, $webvar{$commentn});
    192196      $err .= "error adding $webvar{$blockn}: $ret<br>\n" if $ret;
    193197      $page->param($blockn => $webvar{$blockn});
Note: See TracChangeset for help on using the changeset viewer.