Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.7.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Nov 28, 2023
2 parents 6bb5c36 + 3c27ed0 commit 2c57205
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,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();
Expand Down

0 comments on commit 2c57205

Please sign in to comment.