[wp-trac] [WordPress Trac] #50720: PHPMailer's validator defaults to 'php' after the upgrade
WordPress Trac
noreply at wordpress.org
Mon Jul 27 20:17:51 UTC 2020
#50720: PHPMailer's validator defaults to 'php' after the upgrade
-------------------------------------------------+-------------------------
Reporter: david.binda | Owner: whyisjake
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Mail | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by whyisjake):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"48645" 48645]:
{{{
#!CommitTicketReference repository="" revision="48645"
Mail: PHPMailer swap to use is_email for the default validator.
Prior to the PHPMailer update in 5.5, old version of the PHPMailer was
setting the validator to 'auto' resulting in a sophisticated logic for
determining what email address validation should be used. But the new
version defaults to 'php', possibly leading to rejection of email
addresses which were fine prior to the upgrade. Let's use the WordPress
core function `is_email()` so that it can be fully pluggable.
Fixes #50720.
Props david.binda, ayeshrajans, Synchro, SergeyBiryukov, whyisjake.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50720#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list