[
https://issues.apache.org/jira/browse/VALIDATOR-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kris Babic updated VALIDATOR-384:
---------------------------------
Attachment: VALIDATOR-384.patch
Patch which updates the QUOTED_USER regular expression to allow for an escaped
quote '\"' to be contained within the quoted string component of the local
address.
> 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
> Attachments: VALIDATOR-384.patch
>
>
> 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)