[wp-trac] [WordPress Trac] #21537: Email address sanitisation mangles valid email addresses

WordPress Trac noreply at wordpress.org
Tue Jan 22 09:00:08 UTC 2013


#21537: Email address sanitisation mangles valid email addresses
-------------------------------------+------------------------------
 Reporter:  westi                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  3.4.1
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |
-------------------------------------+------------------------------

Comment (by iandunn):

 What about instead of applying ''wp_filter_kses'', we pass the new address
 through PHP's ''[http://php.net/manual/en/filter.filters.sanitize.php
 FILTER_SANITIZE_EMAIL]''? That would strip out all characters except
 letters, digits and {{{!#$%&'*+-/=?^_`{|}~@.[]}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21537#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list