[wp-trac] [WordPress Trac] #15409: Top-Level Domain (TLD) validation function and email validation/sanitization

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 12 20:40:33 UTC 2010


#15409: Top-Level Domain (TLD) validation function and email
validation/sanitization
-------------------------+--------------------------------------------------
 Reporter:  stephdau     |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Formatting   |     Version:  3.1            
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------
 The following patch proposes a new global function,
 does_value_end_in_valid_tld, to allow for a string value to be tested for
 as ending in a valid TLD.

 TLD list as per http://data.iana.org/TLD/tlds-alpha-by-domain.txt

 Regex inspired by
 http://gitorious.org/statusnet/mainline/blobs/master/lib/util.php#line724

 The patch also implements using does_value_end_in_valid_tld() in
 is_email() and sanitize_email(), to start with.

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


More information about the wp-trac mailing list