Changeset 101 for trunk/uribl/uridb.cgi


Ignore:
Timestamp:
09/24/25 11:01:28 (43 hours ago)
Author:
Kris Deugau
Message:

/trunk/uribl

File off most of the rough edges on configuration from the misc table; all
keys now have defaults in the object, overrides happen correctly, and all
keys are filled in to the appropriate places in the output rather than
hardcoding things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uribl/uridb.cgi

    r91 r101  
    103103    ($domain) = split /:/, $domain;
    104104    $domain =~ s/^\+//;
    105     $domain =~ s/\.$uridb->{misc}{blzone}//;
     105    $domain =~ s/\.$uridb->{misc}{blzone}// if $uridb->{misc}{blzone};
    106106    # and a secondary zone name Just In Case(TM)
    107     $domain =~ s/\.$uridb->{misc}{altblzone}//;
     107    $domain =~ s/\.$uridb->{misc}{altblzone}// if $uridb->{misc}{altblzone};
    108108    # trim any non-FQDN URI parts
    109109    $domain =~ s{/.+$}{};
     
    113113    chomp $domain;
    114114    # now, see if it's multilisted
    115     if ($domain =~ / on (\w+)\s*$/) {
     115    if ($domain =~ / on ([\w-]+)\s*$/) {
    116116      my $sub = $1;
    117       #$domain =~ s/ on \w+\s*$//;
     117      $domain =~ s/ on [\w-]+\s*$//;
    118118      $domlist[$domcount-1]->{otherlists} .= ",$sub";
    119119      next;
Note: See TracChangeset for help on using the changeset viewer.