DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38896>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38896 Summary: minlength alert is broken and js function produces warnings under ff1.5 Product: Commons Version: Nightly Builds Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Validator AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I use the following rule (It can give information to the hackers people). <field property="password" depends="required,minlength"> <arg key="user.password"/> <var> <var-name>minlength</var-name> <var-value>6</var-value> </var> </field> This configuration produces the following alert : Password can not be less than {1} characters. -->Thus is does not replace the {1} by 6. I receive also a warning in the javascript console of firefox : Avertissement : reference to undefined property this[varName] for these two lines : this.a0 = new Array("password", "Password can not be less than {1} characters.", new Function ("varName", "this.minlength='6'; return this[varName];")); this.a1 = new Array("passwordbis", "Password confirmation can not be less than {1} characters.", new Function ("varName", "this.test='(*this*==password)'; this.minlength='6'; return this[varName];")); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]