[wp-trac] [WordPress Trac] #17491: Make is_email() compliant with RFC2822

WordPress Trac noreply at wordpress.org
Fri Oct 10 08:46:32 UTC 2014


#17491: Make is_email() compliant with RFC2822
------------------------------------+-----------------------------
 Reporter:  arena                   |       Owner:
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  Future Release
Component:  Mail                    |     Version:  3.1.2
 Severity:  minor                   |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------

Comment (by dd32):

 #17491 proposed this package: http://code.google.com/p/isemail/ (BSD-
 licensed and unit-tested)

 Personally I don't see a huge need to add a 100% RFC compliant heavy
 package to do email validation, I'd rather stick to the side of fast,
 small, simple - That being said, I admit email validation doesn't follow
 that.

 We already `Test for leading and trailing periods and whitespace` in the
 `$domain` part of the email, if we were to extend that to the `$local`
 part of the email we'd cover the original issue here (and one that i've
 seen quite often).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17491#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list