[SECURITY] Fix (non-exploitable) XSS issue

This commit is contained in:
Raphael Michel
2022-01-25 12:58:06 +01:00
parent e3c7cd7c6d
commit 3596fa9c5a
6 changed files with 27 additions and 13 deletions

View File

@@ -675,7 +675,21 @@ $(function () {
$('[data-toggle="tooltip"]').tooltip();
$('[data-toggle="tooltip_html"]').tooltip({
'html': true
'html': true,
'whiteList': {
// Global attributes allowed on any supplied element below.
'*': ['class', 'dir', 'id', 'lang', 'role'],
b: [],
br: [],
code: [],
div: [], // required for template
h3: ['class', 'role'], // required for template
i: [],
small: [],
span: [],
strong: [],
u: [],
}
});
var url = document.location.toString();