fix XSS
This commit is contained in:
parent
3223b0f58a
commit
4f12355720
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@
|
|||
|
||||
const makeForm = id == comment || postid == -1
|
||||
ret +=
|
||||
`<post><div class="content"><h3>${post.author}: ${post.title}</h3>` +
|
||||
`<post><div class="content"><h3>${post.author.replaceAll('<','<').replaceAll('>','>')}: ${post.title.replaceAll('<','<').replaceAll('>','>')}</h3>` +
|
||||
post.content.replaceAll('<','<').replaceAll('>','>')
|
||||
.replaceAll('[* ', '<i>').replaceAll(' *]', '</i>')
|
||||
.replaceAll('[** ', '<b>').replaceAll(' **]', '</b>')
|
||||
|
|
Loading…
Reference in a new issue