commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (VALIDATOR-384) EmailValidator does not support escaped quotes in a quoted string
Date Thu, 07 Jan 2016 15:22:39 GMT

     [ https://issues.apache.org/jira/browse/VALIDATOR-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved VALIDATOR-384.
----------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.1

Fixed with allowing just \"

URL: http://svn.apache.org/viewvc?rev=1723573&view=rev
Log:
VALIDATOR-384 EmailValidator does not support escaped quotes in a quoted string

Modified:
    commons/proper/validator/trunk/src/changes/changes.xml
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/EmailValidator.java
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java


> 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.5.0
>            Reporter: Kris Babic
>             Fix For: 1.5.1
>
>         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)

Mime
View raw message