From 459a26615fe077406c7b8e2df0b312f476c3fb8e Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 5 Sep 2022 13:11:20 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=8D=87=E7=BA=A7jsoup=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=BA=9F=E5=BC=83=E7=9A=84=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/track/issue/AbstractIssuePlatform.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java b/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java index 3b6094031a..7802caa126 100644 --- a/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java @@ -31,7 +31,7 @@ import io.metersphere.track.service.TestCaseService; import org.apache.commons.lang3.StringUtils; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; -import org.jsoup.safety.Whitelist; +import org.jsoup.safety.Safelist; import org.springframework.http.HttpHeaders; import org.springframework.http.ResponseEntity; import org.springframework.util.CollectionUtils; @@ -240,7 +240,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform { document.select("br").append("\\n"); document.select("p").prepend("\\n\\n"); desc = document.html().replaceAll("\\\\n", "\n"); - desc = Jsoup.clean(desc, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)); + desc = Jsoup.clean(desc, "", Safelist.none(), new Document.OutputSettings().prettyPrint(false)); return desc.replace(" ", ""); }