Kris Babic created VALIDATOR-384: ------------------------------------ Summary: EmailValidator does not support escaped quotes in a quoted string Key: VALIDATOR-384 URL: https://issues.apache.org/jira/browse/VALIDATOR-384 Project: Commons Validator Issue Type: Bug Components: Routines Affects Versions: 1.4.1 Release Reporter: Kris Babic Priority: Minor
EmailValidator does not support escaped quotes '\"' within a quoted string as specified by [RFC5322 section 3.2.4|https://tools.ietf.org/html/rfc5322#page-13] as well as in the older [RFC2822 section 3.2.5|https://tools.ietf.org/html/rfc2822#page-13]. These sections indicate that a quoted string can contain a quoted pair (escaped characters), where a quoted pair is defined as (in RFC5322): {quote} quoted-pair = ("\" (VCHAR / WSP)) / obs-qp VCHAR = %x21-7E; visible (printing) characters {quote} The " character is %x22 which falls under the definition of VCHAR above. Examples: {quote} "example\"email"@example.org {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)