An UNMAINTAINTED project originally exported from code.google.com/p/owasp-esapi-js. This project is deprecated. See the README.md for further details and possible alternatives.
getValid calls getValidInput, but all validation exceptions are catched to call this.sanitize which returns the input instead of false, hence isValidInteger always return true
The following call returns
true
instead offalse
:The problem comes from:
DefaultValidator.isValidInteger
callsDefaultValidator.getValidInteger
DefaultValidator.getValidInteger
callsBaseValidationRule.getValid
getValid
callsgetValidInput
, but all validation exceptions are catched to callthis.sanitize
which returns the input instead offalse
, henceisValidInteger
always returntrue