fix note history xss
This commit is contained in:
@ -49,6 +49,7 @@ define('history', [], function() {
|
|||||||
if (this.note.IsMarkdown) {
|
if (this.note.IsMarkdown) {
|
||||||
wrap = '<pre>';
|
wrap = '<pre>';
|
||||||
wrapEnd = '</pre>';
|
wrapEnd = '</pre>';
|
||||||
|
content = trimTitle(content) // for xss
|
||||||
}
|
}
|
||||||
$historyContent.html(wrap + content + wrapEnd);
|
$historyContent.html(wrap + content + wrapEnd);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user