【fix sonar】XSSUtils文件
This commit is contained in:
+2
-1
@@ -35,8 +35,9 @@ public class XSSUtils {
|
||||
value = scriptPattern.matcher(value).replaceAll("");
|
||||
scriptPattern = Pattern.compile("onload(.*?)=", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL);
|
||||
value = scriptPattern.matcher(value).replaceAll("");
|
||||
return HtmlUtils.htmlEscape(value);
|
||||
}
|
||||
return HtmlUtils.htmlEscape(value);
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user