Skip to content

Commit

Permalink
Ignore empty/wrong lines on whitelist_dmarc file (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio authored Feb 14, 2024
1 parent bafcc08 commit 8d3d283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Mail/DMARC/PurePerl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ sub is_whitelisted {
foreach my $line ( split /\n/, $self->slurp($white_file) ) {
next if $line =~ /^#/; # ignore comments
my ($lip,$reason) = split /\s+/, $line, 2;
next if not defined $lip;
$self->{_whitelist}{$lip} = $reason;
};
};
Expand Down

0 comments on commit 8d3d283

Please sign in to comment.