[wp-trac] [WordPress Trac] #25779: wp_notify_moderator() sends multiple emails to the same person if the email addresses are not the same case
WordPress Trac
noreply at wordpress.org
Wed Oct 30 22:05:13 UTC 2013
#25779: wp_notify_moderator() sends multiple emails to the same person if the email
addresses are not the same case
--------------------------+-----------------------------
Reporter: westi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.7.1
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
In the code we have:
{{{
$emails = array( get_option('admin_email') );
if ( user_can($user->ID, 'edit_comment', $comment_id) &&
!empty($user->user_email) && ( get_option('admin_email') !=
$user->user_email) )
$emails[] = $user->user_email;
}}}
If the Post Author's email address is something like {{{Foo at bar.com}}} and
the admin_email is {{{foo at bar.com}}} then we will send two emails to the
same person.
While [http://www.ietf.org/rfc/rfc2821.txt RFC2821] says:
The local-part of a mailbox MUST BE treated as case sensitive.
Therefore, SMTP implementations MUST take care to preserve the case of
mailbox local-parts. Mailbox domains are not case sensitive.
WordPress already treats email addresses as case insensitive in other
places and places like gmail does too.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25779>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list