开发者

How to validate GET/POST parameter to avoid javascript injection

开发者 https://www.devze.com 2023-01-24 07:21 出处:网络
I\'m building an AJAX enabl开发者_开发问答ed web application in which I\'m accepting to inputs from user or sometimes building query string based on user action.

I'm building an AJAX enabl开发者_开发问答ed web application in which I'm accepting to inputs from user or sometimes building query string based on user action.

Using firebug or other tools anyone can inspect and view data being sent to server.

I would like to know how to validate query variables at server side using java to detect malicious script being sent to server.

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消