fix: b6e83e1535
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-10-08 21:32:12 +08:00
parent 2fcc71029e
commit 8195e61f74
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -1150,11 +1150,7 @@ function showStandings() {
}
if (show_self_reviews) {
col_tr += '<td><div id="review-' + row[2][0] + '"></div>'
+ '<script>'
+ '(function() { $("#review-' + row[2][0] + '")'
+ '.html(DOMPurify.sanitize(decodeURIComponent("' + encodeURIComponent(String(row[4] || '')) + '"), {ALLOWED_TAGS: ["a", "b", "i", "u", "em", "strong", "sub", "sup", "small", "del", "br"], ALLOWED_ATTR: ["href"]})); })();'
+ '</scr' + 'ipt></td>';
col_tr += '<td>' + (row[2][0] || '') + '</td>';
}
col_tr += '</tr>';
return col_tr;