mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Update xss.js package (#16398)
This commit is contained in:
@@ -76,7 +76,7 @@ export function sanitize(text, allowLister) {
|
||||
}
|
||||
|
||||
let result = xss(text, {
|
||||
whiteList: allowList.tagList,
|
||||
allowList: allowList.tagList,
|
||||
stripIgnoreTag: true,
|
||||
stripIgnoreTagBody: ["script", "table"],
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ function findUploadsInHtml(uploads, blockToken) {
|
||||
|
||||
let foundImage = false;
|
||||
const newContent = xss(blockToken.content, {
|
||||
whiteList: fakeAllowList,
|
||||
allowList: fakeAllowList,
|
||||
allowCommentTag: true,
|
||||
onTag(tag, html, options) {
|
||||
// We're not using this for sanitizing, so allow all tags through
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"ember-auto-import": "^2.2.4",
|
||||
"ember-cli-babel": "^7.13.0",
|
||||
"ember-cli-htmlbars": "^4.2.0",
|
||||
"xss": "^1.0.8",
|
||||
"xss": "^1.0.11",
|
||||
"webpack": "^5.67.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user