[wp-trac] [WordPress Trac] #25108: is_email() function validates email with domain that just has 1 character after dot

WordPress Trac noreply at wordpress.org
Wed Aug 21 09:03:49 UTC 2013


#25108: is_email() function validates email with domain that just has 1 character
after dot
--------------------------+-----------------------------
 Reporter:  hchouhan      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Validation    |    Version:  3.6
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 is_email() function validates an email address that has domain name
 extension of just 1 character. I am not sure if there are any domains with
 just 1 character after.

 To Test I used below code:

 {{{
 <?php if ( is_email( 'email at domain.c' ) ) {
       echo 'email address is valid.';
 } ?>
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25108>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list