commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlel...@apache.org
Subject cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateMaxLength.js validateMinLength.js
Date Tue, 07 Oct 2003 03:00:15 GMT
rleland     2003/10/06 20:00:15

  Modified:    validator/src/javascript/org/apache/commons/validator/javascript
                        validateMaxLength.js validateMinLength.js
  Log:
  Bug#: 12473
  Let max/min length also cover passwords fields.
  If users don't want the password min/max parameters
  revealed then they shouldn't use the validator.
  Currently in struts the min/max values are still
  in the html, anyway. There is no easy/clean workaround.
  
  Just don't use validator.
  
  Revision  Changes    Path
  1.3       +4 -3      jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMaxLength.js
  
  Index: validateMaxLength.js
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMaxLength.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- validateMaxLength.js	15 Aug 2003 20:22:03 -0000	1.2
  +++ validateMaxLength.js	7 Oct 2003 03:00:15 -0000	1.3
  @@ -13,6 +13,7 @@
               var field = form[oMaxLength[x][0]];
   
               if (field.type == 'text' ||
  +                field.type == 'password' ||
                   field.type == 'textarea') {
   
                   var iMax = parseInt(oMaxLength[x][2]("maxlength"));
  
  
  
  1.4       +4 -3      jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js
  
  Index: validateMinLength.js
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- validateMinLength.js	15 Aug 2003 20:22:03 -0000	1.3
  +++ validateMinLength.js	7 Oct 2003 03:00:15 -0000	1.4
  @@ -13,6 +13,7 @@
               var field = form[oMinLength[x][0]];
   
               if (field.type == 'text' ||
  +                field.type == 'password' ||
                   field.type == 'textarea') {
   
                   var iMin = parseInt(oMinLength[x][2]("minlength"));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message