commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Belingueres (JIRA)" <j...@apache.org>
Subject [jira] Updated: (VALIDATOR-190) EmailValidator allows control characters (ASCII 0-31)
Date Sat, 10 Jun 2006 19:56:31 GMT
     [ http://issues.apache.org/jira/browse/VALIDATOR-190?page=all ]

Gabriel Belingueres updated VALIDATOR-190:
------------------------------------------

    Attachment: EmailValidator-diff.txt
                EmailTest-diff.txt

Hi,

I'm uploading the patch files that would solve the issue (ie not allowing ASCII 0..31 in the
local part of the email address), along with a test case.

Gabriel


> EmailValidator allows control characters (ASCII 0-31)
> -----------------------------------------------------
>
>          Key: VALIDATOR-190
>          URL: http://issues.apache.org/jira/browse/VALIDATOR-190
>      Project: Commons Validator
>         Type: Bug

>     Versions: 1.3.0 Release
>     Reporter: Cott
>     Priority: Minor
>  Attachments: EmailTest-diff.txt, EmailValidator-diff.txt
>
> EmailValidator allows ASCII 0 - 31 in an email address.
> According to RFC 821, these are forbidden.
> import org.apache.commons.validator.EmailValidator;
> public class Test {
>   public static void main(String[] args) {
>     EmailValidator ev = EmailValidator.getInstance();
>     String email ="\000nobody@nowhere.com";
>     System.err.println(ev.isValid(email));
>   }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message