怎么处理:sql注入怎么处理单引号
sql注入怎样处理单引号
sql注入处理单引号的方法:
当使用${}写sql时,将单引号,替换为两个单引号便可,例如:
String regexp = "\'";
str.replaceAll(regexp, "\'\'");
文章来源:丸子建站
文章标题:怎么处理:sql注入怎么处理单引号
https://www.wanzijz.com/view/5578.html
Related articles
NEW ARTICLE
HOT ARTICLE