Allow mumble:// links through XSS filter
This commit is contained in:
parent
976228683b
commit
09de27644d
|
@ -32,6 +32,10 @@ const ALLOWED_ATTRIBUTES = [
|
||||||
"width"
|
"width"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const ALLOWED_SCHEMES = [
|
||||||
|
"mumble"
|
||||||
|
];
|
||||||
|
|
||||||
var ATTRIBUTE_MAP = {
|
var ATTRIBUTE_MAP = {
|
||||||
a: ["href", "name", "target"],
|
a: ["href", "name", "target"],
|
||||||
font: ["size"],
|
font: ["size"],
|
||||||
|
@ -55,6 +59,7 @@ sanitizeHTML.defaults.allowedTags.concat(ALLOWED_TAGS).forEach(function (tag) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const SETTINGS = {
|
const SETTINGS = {
|
||||||
|
allowedSchemes: sanitizeHTML.defaults.allowedSchemes.concat(ALLOWED_SCHEMES),
|
||||||
allowedTags: sanitizeHTML.defaults.allowedTags.concat(ALLOWED_TAGS),
|
allowedTags: sanitizeHTML.defaults.allowedTags.concat(ALLOWED_TAGS),
|
||||||
allowedAttributes: ATTRIBUTE_MAP
|
allowedAttributes: ATTRIBUTE_MAP
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue