fix(漏洞): 新闻、通知加xss过滤

This commit is contained in:
ZhangZhiYi
2026-08-13 11:42:51 +08:00
parent a66e9e1441
commit 284b714c1e
7 changed files with 166 additions and 2 deletions

View File

@@ -65,6 +65,12 @@
<artifactId>commons-lang3</artifactId>
</dependency>
<!-- 富文本白名单净化 -->
<dependency>
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
<artifactId>owasp-java-html-sanitizer</artifactId>
</dependency>
<!-- JSON工具类 -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
@@ -196,6 +202,12 @@
<artifactId>mapstruct-processor</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>