mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
[SECURITY] Fix stored XSS in question errors
This commit is contained in:
committed by
Raphael Michel
parent
482968175b
commit
6d6883b343
@@ -219,7 +219,10 @@ $(function () {
|
|||||||
// multi-input fields have a role=group with aria-labelledby
|
// multi-input fields have a role=group with aria-labelledby
|
||||||
var label = this.hasAttribute("aria-labelledby") ? $("#" + this.getAttribute("aria-labelledby")) : $("[for="+target.attr("id")+"]");
|
var label = this.hasAttribute("aria-labelledby") ? $("#" + this.getAttribute("aria-labelledby")) : $("[for="+target.attr("id")+"]");
|
||||||
|
|
||||||
content.append("<li><a href='#" + target.attr("id") + "'>" + label.get(0).childNodes[0].nodeValue + "</a>: "+desc.text()+"</li>");
|
var $li = $("<li>");
|
||||||
|
$li.text(": " + desc.text())
|
||||||
|
$li.prepend($("<a>").attr("href", "#" + target.attr("id")).text(label.get(0).childNodes[0].nodeValue))
|
||||||
|
content.append($li);
|
||||||
});
|
});
|
||||||
$(this).append(content);
|
$(this).append(content);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user