[wp-trac] [WordPress Trac] #27270: Validation for leading/trailing periods, or consecutive periods in email addresses is only done on the domain section
WordPress Trac
noreply at wordpress.org
Tue Mar 4 10:34:52 UTC 2014
#27270: Validation for leading/trailing periods, or consecutive periods in email
addresses is only done on the domain section
--------------------------+-----------------------------
Reporter: scruffian | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
WordPress valids that the domain portion of the email address (after the
@) doesn't have leading or trailing periods, or more than one period
consecutively, but the same check isn't done on the portion before the @.
This means that the following email addresses validate:
.name at email.com
name. at email.com
first..last at email.com
The attached patch will resolve this, although it might need a little
refactoring to deal with the duplication in trimming periods and
whitespace.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27270>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list