mirror of https://github.com/status-im/codimd.git
Fix slide mode contains unclosed tags might cause XSS [Security Issue]
This commit is contained in:
parent
9b00afb863
commit
f2743ff8f8
|
@ -4,9 +4,10 @@
|
||||||
require('../css/extra.css')
|
require('../css/extra.css')
|
||||||
require('../css/site.css')
|
require('../css/site.css')
|
||||||
|
|
||||||
|
import { preventXSS } from './render'
|
||||||
import { md, updateLastChange, removeDOMEvents, finishView } from './extra'
|
import { md, updateLastChange, removeDOMEvents, finishView } from './extra'
|
||||||
|
|
||||||
const body = $('.slides').text()
|
const body = preventXSS($('.slides').text())
|
||||||
|
|
||||||
window.createtime = window.lastchangeui.time.attr('data-createtime')
|
window.createtime = window.lastchangeui.time.attr('data-createtime')
|
||||||
window.lastchangetime = window.lastchangeui.time.attr('data-updatetime')
|
window.lastchangetime = window.lastchangeui.time.attr('data-updatetime')
|
||||||
|
|
Loading…
Reference in New Issue