Merge pull request #465 from Xaekai/3.0

Allow mumble:// links through XSS filter
This commit is contained in:
Calvin Montgomery 2015-04-16 10:45:07 -05:00
commit 4a7e478f37

View file

@ -32,6 +32,10 @@ const ALLOWED_ATTRIBUTES = [
"width"
];
const ALLOWED_SCHEMES = [
"mumble"
];
var ATTRIBUTE_MAP = {
a: ["href", "name", "target"],
font: ["size"],
@ -55,6 +59,7 @@ sanitizeHTML.defaults.allowedTags.concat(ALLOWED_TAGS).forEach(function (tag) {
});
const SETTINGS = {
allowedSchemes: sanitizeHTML.defaults.allowedSchemes.concat(ALLOWED_SCHEMES),
allowedTags: sanitizeHTML.defaults.allowedTags.concat(ALLOWED_TAGS),
allowedAttributes: ATTRIBUTE_MAP
};