[wp-trac] [WordPress Trac] #26805: is_email not allowing apostrophe

WordPress Trac noreply at wordpress.org
Mon Dec 8 15:36:03 UTC 2014


#26805: is_email not allowing apostrophe
-------------------------------------+------------------------------
 Reporter:  contrid                  |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Formatting               |     Version:  3.8
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------
Changes (by miqrogroove):

 * keywords:  reporter-feedback => reporter-feedback close


Comment:

 I suspect this is the reason why we still do that in core.  People who
 don't understand the superglobal variables use them in security-sensitive
 areas.

 JoshRoy, just use `is_email( stripslashes( $_POST[ 'email' ] ) )` or as
 boonebgorges suggests, try to figure out which is the more appropriate
 variable.

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


More information about the wp-trac mailing list