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

Modified Files:
      Tag: b1_5
        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.21.2.2
retrieving revision 1.21.2.3
diff -u -b -r1.21.2.2 -r1.21.2.3
--- ResponseFormPortlet.java    6 Oct 2008 14:22:18 -0000       1.21.2.2
+++ ResponseFormPortlet.java    6 Oct 2008 15:04:38 -0000       1.21.2.3
@@ -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