[ http://issues.apache.org/jira/browse/VALIDATOR-190?page=all ]
Niall Pemberton resolved VALIDATOR-190.
---------------------------------------
Fix Version/s: 1.3.1
Resolution: Fixed
Assignee: Niall Pemberton
I applied a slightly different change since any valid ASCII character is
allowed if its quoted - so I changed the excluded "special characters" which
are used to define atom/word to also exclude ascii control characters (ASCII
0-31 and 127).
http://svn.apache.org/viewvc?view=rev&revision=478560
You can test out the changes using the next nightly build:
http://people.apache.org/builds/jakarta-commons/nightly/commons-validator/
Thanks for reporting this and your help!
Niall
> EmailValidator allows control characters (ASCII 0-31)
> -----------------------------------------------------
>
> Key: VALIDATOR-190
> URL: http://issues.apache.org/jira/browse/VALIDATOR-190
> Project: Commons Validator
> Issue Type: Bug
> Components: Routines
> Affects Versions: 1.3.0 Release
> Reporter: Cott
> Assigned To: Niall Pemberton
> Priority: Minor
> Fix For: 1.3.1
>
> 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 ="[EMAIL PROTECTED]";
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]