Fix slide mode contains unclosed tags might cause XSS [Security Issue]
This commit is contained in:
parent
9b00afb863
commit
f2743ff8f8
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue