fix whitelisting support in uribl
(bug in extracting the "base" portion of the domain name.) git-svn-id: https://svn.perl.org/qpsmtpd/trunk@906 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
502e1d286e
commit
d0a8432c16
@ -334,8 +334,8 @@ sub data_handler {
|
||||
my $cutoff = exists
|
||||
$strict_twolevel_cctlds{$host_domains[$#host_domains]} ? 3 : 2;
|
||||
if (exists $self->{whitelist_zones}->{
|
||||
join('.', @host_domains[($cutoff-1)..$#host_domains])}) {
|
||||
|
||||
join('.',
|
||||
@host_domains[($#host_domains-$cutoff+1)..$#host_domains])}) {
|
||||
$self->log(LOGINFO, "Skipping whitelist URI domain '$host'");
|
||||
} else {
|
||||
while (@host_domains >= $cutoff) {
|
||||
|
Loading…
Reference in New Issue
Block a user