[
https://issues.apache.org/jira/browse/VALIDATOR-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15087517#comment-15087517
]
Sebb commented on VALIDATOR-384:
--------------------------------
Thanks for the patch.
However it appears to allow any character after the escape, rather than just
double-quote.
I wonder why that was done?
The original RE only disallowed " within the quoted string, so it should only
be necessary to allow an escaped quote.
> 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
> 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)