1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix XSS bug

This commit is contained in:
Baptiste Augrain
2018-09-15 15:24:59 +02:00
parent 7af77384e7
commit b03c2a1f80
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ module.exports = function sanitizePlugin (md, options) {
options
)
}
if (state.tokens[tokenIdx].type === 'fence') {
if (state.tokens[tokenIdx].type === '_fence') {
// escapeHtmlCharacters has better performance
state.tokens[tokenIdx].content = escapeHtmlCharacters(
state.tokens[tokenIdx].content,