[Esapi-user] ESAPI JAVASCRIPT INPUT VALIDATION ISSUE

Rajaneesh Medarametla Rajaneesh_M01 at infosys.com
Fri Aug 24 05:27:05 UTC 2012


Hi,

I'm new to ESAPI, we are trying to implement ESAPI in our application. Everything works fine except javascript validations, when we try to validate it is always true for invalid input. Please find my code below

<script type="text/javascript" language="JavaScript" src="./esapi4js-0.1.3/lib/log4js.js"></script>
<script type="text/javascript" language="JavaScript" src="./esapi4js-0.1.3/esapi.js"></script>
<script type="text/javascript" language="JavaScript" src="./esapi4js-0.1.3/resources/i18n/ESAPI_Standard_en_US.properties.js"></script>
<script type="text/javascript" language="JavaScript" src="D:/2.4.9/esapi4js-0.1.3/resources/Base.esapi.properties.js"></script>

var flag = $ESAPI.validator().isValidInput ("AccountName","ABCG*&%$&#$","AccountName", 50, true);

Please help.

Regards,
Rajaneesh M



**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/esapi-user/attachments/20120824/52866ccf/attachment.html>


More information about the Esapi-user mailing list