[wp-trac] [WordPress Trac] #43108: sanitize_email returns null for emails without . / tld
WordPress Trac
noreply at wordpress.org
Wed Jan 17 12:27:38 UTC 2018
#43108: sanitize_email returns null for emails without . / tld
--------------------------+-----------------------------
Reporter: raisonon | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.9.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
According to the latest HTML5 specification the following examples counts
as correctly formatted email:
email at localhost OR susan at domain
>> reference: https://html.spec.whatwg.org/multipage/input.html#valid-e
-mail-address
When using sanitize_email() with an email formatted the result is null. It
shouldn't.
sanitize_email('hello at email') outputs null it should output hello at email
--
aside: not sure correct way to describe -- no . or no tld -- eitherway,
hope example displays what i mean.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43108>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list