You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/05/14 01:15:28 UTC

DO NOT REPLY [Bug 9051] New: - [PATCH] 0 should be a valid float

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9051>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9051

[PATCH] 0 should be a valid float

           Summary: [PATCH] 0 should be a valid float
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: struts@quinteiro.com


Current validator-rules.xml does not validate 0 as a float.  Here is a patch:

Index: conf/share/validator-rules.xml
===================================================================
RCS file: /home/cvspublic/jakarta-struts/conf/share/validator-rules.xml,v
retrieving revision 1.2
diff -r1.2 validator-rules.xml
379c379
<                        if (!iValue) {

---
>                        if( isNaN(iValue) ) {

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>