Lib to protect SQL/javascript injection for java/j

2019-07-15 19:20发布

Anyone know a good lib where i can run the strings before they are inserted, that can strip out sql/javascript code? To be run in jsp pages.

Idealy the lib would be:

  • Free
  • Lightweight
  • Easy to use

Thanks in advance to the SO community who will happily reply :)

7条回答
迷人小祖宗
2楼-- · 2019-07-15 19:42

Take a look at AntiSamy on OWASP. I think this might be what you are looking for. I do not currently work in Java so I cannot tell you about how it performs.

查看更多
登录 后发表回答