2020
10-10
10-10
Java如何防止JS脚本注入代码实例
1.java中防止JS脚本注入的工具类-通用publicclassXssUtil{privatestaticMap<String,String>xssMap=newLinkedHashMap<String,String>();privatestaticMap<String,String>xssNewMap=newLinkedHashMap<String,String>();static{init();}publicstaticvoidinit(){//含有脚本:scriptxssMap.put("[s|S][c|C][r|R][i|C][p|P][t|T]","");//含有脚本javascriptxssMap.put("[\\\...
继续阅读 >