You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/01/08 19:56:36 UTC
DO NOT REPLY [Bug 15898] New: -
GenericValidaor.isEmail bug
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15898>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15898
GenericValidaor.isEmail bug
Summary: GenericValidaor.isEmail bug
Product: Commons
Version: 1.0.1 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Validator
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: ticktock@speakeasy.net
isEmail returns true when the domain part ends with a dot
example
ticktock@speakeasy.
returns true.
Quick n Dirty fix
GenericValidator
public static boolean isEmail(String value) {
boolean bValid = true;
if(value.endsWith(".")){
return false;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>