Skip to content

Commit

Permalink
lowercase $from_dom and $spf_dom variables
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Simerson <matt@tnpi.net>
  • Loading branch information
bigio and msimerson authored Oct 22, 2024
1 parent 80625e6 commit 2f6514c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mail/DMARC/PurePerl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ sub is_spf_aligned {
$self->result->spf('fail');
return 0 if !$spf_dom;

my $from_dom = $self->header_from or croak "header_from not set!";
my $from_dom = lc $self->header_from or croak "header_from not set!";
$spf_dom = lc $spf_dom;

if ( lc($spf_dom) eq lc($from_dom) ) {
$self->result->spf('pass');
Expand Down

0 comments on commit 2f6514c

Please sign in to comment.