Skip to content

Commit

Permalink
RFC7489 6.6.1 states that "group" syntax, are typically ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio committed Jan 29, 2025
1 parent aa2fbf1 commit a053994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mail/DMARC/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ sub is_valid_domain {
return 0 if $domain !~ /^$RE{net}{domain}{-rfc1101}{-nospace}$/x;
my $tld = ( split /\./, lc $domain )[-1];
return 1 if $self->is_public_suffix($tld);
return 1 if $domain eq 'localhost';
return 0 if lc $domain eq 'localhost';
$tld = join( '.', ( split /\./, $domain )[ -2, -1 ] );
return 1 if $self->is_public_suffix($tld);
return 0;
Expand Down

0 comments on commit a053994

Please sign in to comment.