[wp-trac] [WordPress Trac] #53130: is_email() and sanitize_email() differ.

WordPress Trac noreply at wordpress.org
Sun May 2 16:31:22 UTC 2021


#53130: is_email() and sanitize_email() differ.
----------------------------+------------------------------
 Reporter:  DuisterDenHaag  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Mail            |     Version:  5.5
 Severity:  normal          |  Resolution:
 Keywords:  close           |     Focuses:
----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close


Comment:

 Replying to [comment:2 ayeshrajans]:
 > `is_email` function does accept email addresses with the plus sign.
 >
 >
 > {{{#!php
 > var_dump(is_email('info+admin at example.com'));
 > // info+admin at example.com
 > }}}

 Just noting that I was able confirm, `is_email()` does treat this address
 as valid.

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


More information about the wp-trac mailing list