[wp-trac] [WordPress Trac] #38506: Email length can be less than 6 character

WordPress Trac noreply at wordpress.org
Wed Nov 2 15:50:48 UTC 2016


#38506: Email length can be less than 6 character
--------------------------+--------------------
 Reporter:  mangeshp      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------
Changes (by rachelbaker):

 * component:  Comments => REST API
 * milestone:  Awaiting Review => 4.7


Comment:

 We currently only enforce 6 character email addresses in
 `wp_handle_comment_submission()` and the XML-RPC method
 `wp_newComment()`**IF** the `require_name_email` option is set to `true`.

 If no 3 character email address could be encountered in the wild,
 shouldn't we update the `is_email()` function and properly validate email
 address in other locations within core, like for user accounts?  That just
 seems to make more sense to me than adding another special validation on
 top of `is_email()`, but I am interested in your thoughts @dd32

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


More information about the wp-trac mailing list