Attached diff -u patch fix for Bug 12908
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12908)
Jon
===================================================================
RCS file: /home/cvspublic/jakarta-struts/conf/share/validator-rules.xml,v
retrieving revision 1.8
diff -u -r1.8 validator-rules.xml
--- validator-rules.xml 16 Jul 2002 02:37:55 -0000 1.8
+++ validator-rules.xml 22 Sep 2002 21:35:39 -0000
@@ -102,6 +102,7 @@
oMinLength = new minlength();
for (x in oMinLength) {
if (form[oMinLength[x][0]].type == 'text' ||
+ form[oMinLength[x][0]].type == 'password' ||
form[oMinLength[x][0]].type == 'textarea') {
var iMin = parseInt(oMinLength[x][2]("minlength"));
if (!(form[oMinLength[x][0]].value.length >= iMin)) {
@@ -144,6 +145,7 @@
oMaxLength = new maxlength();
for (x in oMaxLength) {
if (form[oMaxLength[x][0]].type == 'text' ||
+ form[oMaxLength[x][0]].type == 'password' ||
form[oMaxLength[x][0]].type == 'textarea') {
var iMax = parseInt(oMaxLength[x][2]("maxlength"));
if (!(form[oMaxLength[x][0]].value.length <= iMax)) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>