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

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 10 14:26:05 UTC 2012


#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  |
-------------------------------------+------------------------------
Changes (by beaulebens):

 * cc: beau@… (added)


Comment:

 While we're in there, there are some other rules that might need to be
 considered:

 * Uppercase and lowercase English letters (a–z, A–Z) (ASCII: 65–90,
 97–122)
 * Digits 0 to 9 (ASCII: 48–57)
 * Characters !#$%&'*+-/=?^_`{|}~ (ASCII: 33, 35–39, 42, 43, 45, 47, 61,
 63, 94–96, 123–126)
 * Character . (dot, period, full stop) (ASCII: 46) provided that it is not
 the first or last character, and provided also that it does not appear two
 or more times consecutively (e.g. John..Doe at example.com is not allowed.).
 * Special characters are allowed with restrictions. They are:
  * Space and "(),:;<>@[\] (ASCII: 32, 34, 40, 41, 44, 58, 59, 60, 62, 64,
 91–93)
  * The restrictions for special characters are that they must only be used
 when contained between quotation marks, and that 2 of them (the backslash
 \ and quotation mark " (ASCII: 32, 92, 34)) must also be preceded by a
 backslash \ (e.g. "\\\"").
 * Comments are allowed with parentheses at either end of the local part;
 e.g. "john.smith(comment)@example.com" and
 "(comment)john.smith at example.com" are both equivalent to
 "john.smith at example.com".
 * International characters above U+007F are permitted by RFC 6531, though
 mail systems may restrict which characters to use when assigning local
 parts.

 From http://en.wikipedia.org/wiki/Email_address which summarizes
 http://tools.ietf.org/html/rfc3696#section-3

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


More information about the wp-trac mailing list