[wp-trac] [WordPress Trac] #25108: is_email() function validates email with domain that just has 1 character after dot
WordPress Trac
noreply at wordpress.org
Tue Aug 27 18:59:04 UTC 2013
#25108: is_email() function validates email with domain that just has 1 character
after dot
----------------------------------------+------------------------------
Reporter: hchouhan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+------------------------------
Changes (by nacin):
* keywords: has-patch => has-patch needs-unit-tests
Comment:
In [attachment:25108.diff], we can probably wait until after the loop is
finished, then check $sub (which will hold the final piece) or do `end(
$subs )`.
Needs unit tests.
I think it's more than safe to exclude a one-letter TLD, yes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25108#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list