Commons Lang common tool class stringescapeutils use — to

https://my.oschina.net/ydsakyclguozi/blog/341496

Apache commons Lang (version 2.3 and above) provides us with a tool class that is convenient for escape, mainly to prevent SQL injection and XSS injection attacks.

Common Lang common tool class stringescapeutils uses:

1. Escape SQL provides SQL transfer function to prevent SQL injection attacks, such as typical universal password attack 'or 1 = 1'

2. Escapehtml / unescapehtml escape / anti escape HTML script

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>