demba90 / owasp-esapi-java

Automatically exported from code.google.com/p/owasp-esapi-java
Other
0 stars 0 forks source link

Validating email addresses that contain an apostrophe #126

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to validate email addresses that contain an apostrophe for example:
test.o'brien@email.com
2.  ESAPI.validator().isValidInput( "Email", test.o'brien@email.com,
"Email", 100, false)

What is the expected output? What do you see instead?
Email address is valid, no error should be thrown.
org.owasp.esapi.errors.ValidationException: Email: Invalid input.

What version of the product are you using? On what operating system?
ESAPI-2.0rc2, SUSE Linux 10

Please provide any additional information below.
Problem can be fixed by adding apostrophe to Regex in validation.properties

Original issue reported on code.google.com by finn...@gmail.com on 4 Jun 2010 at 10:37

GoogleCodeExporter commented 8 years ago
Good suggestion, we should fix this before 2.0GA

Original comment by manico.james@gmail.com on 2 Nov 2010 at 7:50

GoogleCodeExporter commented 8 years ago
Made change to allow for apostrophe in Validator.Email configuration.  Also 
added a few unit tests to ensure fix functions properly.

Original comment by jtmel...@gmail.com on 4 Nov 2010 at 2:48