Opened 12 years ago
Closed 12 years ago
#25779 closed defect (bug) (fixed)
wp_notify_moderator() sends multiple emails to the same person if the email addresses are not the same case
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.8 | Priority: | normal |
| Severity: | normal | Version: | 3.1 |
| Component: | Keywords: | has-patch commit | |
| Focuses: | Cc: |
Description
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@bar.com and the admin_email is foo@bar.com then we will send two emails to the same person.
While 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.
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Introduced in [16223].