Skip to content

Commit

Permalink
fix note history xss
Browse files Browse the repository at this point in the history
  • Loading branch information
lealife committed Mar 27, 2021
1 parent 14643d3 commit 0f9733c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/js/plugins/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ define('history', [], function() {
if (this.note.IsMarkdown) {
wrap = '<pre>';
wrapEnd = '</pre>';
content = trimTitle(content) // for xss
}
$historyContent.html(wrap + content + wrapEnd);

Expand Down

0 comments on commit 0f9733c

Please sign in to comment.