Skip to content

Commit

Permalink
更新xss
Browse files Browse the repository at this point in the history
  • Loading branch information
zcool321 committed Jun 15, 2021
1 parent 075701a commit 26f0945
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ public void saveblog() {
content = JFlyFoxUtils.delScriptTag(content);
title = HtmlUtils.delHTMLTag(title);
tags = HtmlUtils.delHTMLTag(tags);

model.setContent(content);
model.setTitle(title);

// 这里没有必要提示太精准~因为前台有验证~绕过的都不是好人哦
if (content == null || HtmlUtils.delHTMLTag(content).length() > 2000 //
|| title == null || title.length() > 200 //
Expand Down

0 comments on commit 26f0945

Please sign in to comment.