[wp-trac] [WordPress Trac] #31992: sanitize_email() and is_email() preg_replace/preg_match problems
WordPress Trac
noreply at wordpress.org
Fri Apr 17 16:58:55 UTC 2015
#31992: sanitize_email() and is_email() preg_replace/preg_match problems
-------------------------------+------------------------------
Reporter: ysalame | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by jasonhendriks):
I had looked into email validation when I wrote my SMTP plugin, and
eventually concluded it is nearly impossible to validate an email address
at all. Most email validators are much more restrictive than any RFC
requires.
I think currently the code doesn't even call sanitize_text_field because
it failed too many of my test cases.
https://wordpress.org/plugins/postman-smtp/
http://girders.org/blog/2013/01/31/dont-rfc-validate-email-addresses/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31992#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list