Subject: | Unmatched quotes for local part in check_email_validity |
Date: | Tue, 30 Jun 2020 17:32:01 -0500 |
To: | bug-Net-validMX [...] rt.cpan.org |
From: | Eric Brown <eric.n.brown [...] gmail.com> |
RFC 3696 states that "conventional double-quote characters may be used
to surround strings." But the code for check_email_validity on lines
563 and 564 replace starting and ending quotes one at a time. So, it
is possible that an email address would be considered valid if it
contains just a single double-quote character that doesn't surround
anything. Should this be valid?
This prints "1" indicating that foo@bar.org is a valid email address:
perl -I ~/perl5/lib/perl5/ -Mlocal::lib -MNet::validMX -e "print
&Net::validMX::check_email_validity('foo@bar.org');"
This prints "1" indicating that foo"@bar.org is also a valid email
address (which possibly shouldn't be):
perl -I ~/perl5/lib/perl5/ -Mlocal::lib -MNet::validMX -e "print
&Net::validMX::check_email_validity('foo\"@bar.org');"
Eric