mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
[SECURITY] Fix (non-exploitable) XSS issue
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user