From 22e53f7cc55accc5c960a4c3e351631993a265e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com>
Date: Fri, 8 Mar 2024 16:14:55 +0800
Subject: [PATCH] :arrow_down: Downgrading dependencies. knife4j version
---
pig-common/pig-common-bom/pom.xml | 2 +-
.../main/java/com/pig4cloud/pig/common/xss/utils/XssUtil.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pig-common/pig-common-bom/pom.xml b/pig-common/pig-common-bom/pom.xml
index 78769b104..e443aeeaa 100644
--- a/pig-common/pig-common-bom/pom.xml
+++ b/pig-common/pig-common-bom/pom.xml
@@ -22,7 +22,7 @@
17
7.0.0
1.2.83_noneautotype
- 3.1.0
+ 3.0.3
2.3.0
2.2.20
3.5.5
diff --git a/pig-common/pig-common-xss/src/main/java/com/pig4cloud/pig/common/xss/utils/XssUtil.java b/pig-common/pig-common-xss/src/main/java/com/pig4cloud/pig/common/xss/utils/XssUtil.java
index 34f1a231d..ec8174c7c 100644
--- a/pig-common/pig-common-xss/src/main/java/com/pig4cloud/pig/common/xss/utils/XssUtil.java
+++ b/pig-common/pig-common-xss/src/main/java/com/pig4cloud/pig/common/xss/utils/XssUtil.java
@@ -102,7 +102,7 @@ public HtmlSafeList() {
}
@Override
- protected boolean isSafeAttribute(String tagName, Element el, Attribute attr) {
+ public boolean isSafeAttribute(String tagName, Element el, Attribute attr) {
// 不允许 javascript 开头的 src 和 href
if ("src".equalsIgnoreCase(attr.getKey()) || "href".equalsIgnoreCase(attr.getKey())) {
String value = attr.getValue();