Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform
In directory 
james.mmbase.org:/tmp/cvs-serv26707/portlets-dynamicforms/src/java/com/finalist/portlets/responseform

Modified Files:
        ResponseFormPortlet.java 
Log Message:
CMSC-1077 Field were always validated as email adres when having a regular 
expression. 


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform
See also: http://www.mmbase.org/jira/browse/CMSC-1077


Index: ResponseFormPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform/ResponseFormPortlet.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- ResponseFormPortlet.java    6 Oct 2008 14:21:04 -0000       1.22
+++ ResponseFormPortlet.java    6 Oct 2008 15:06:21 -0000       1.23
@@ -102,7 +102,7 @@
                   errorMessages.put(fieldIdentifier, "view.formfield.empty");
                }
                if (!regex.equals("")
-                     && (((type == TYPE_TEXTBOX) || (type == TYPE_TEXTAREA)) 
&& !isEmailAddress(value.toString()))) {
+                       && (((type == TYPE_TEXTBOX) || (type == TYPE_TEXTAREA)) 
&& !value.toString().matches(regex))) {
                 errorMessages.put(fieldIdentifier, "view.formfield.invalid");
                }
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to