Skip to content

Node.js based forum software built for the modern web

fix: vote tooltip, translateKey html escapes already

Barış Soner Uşaklıde00780da766
diff --git a/public/src/client/topic/votes.js b/public/src/client/topic/votes.js
index 19463b24ca..a17a152294 100644
--- a/public/src/client/topic/votes.js
+++ b/public/src/client/topic/votes.js
@@ -69,7 +69,7 @@ define('forum/topic/votes', [
async function createTooltip(el, data) {
function doCreateTooltip(title) {
- el.attr('title', utils.escapeHTML(title));
+ el.attr('title', title);
(new bootstrap.Tooltip(el, {
container: '#content',
html: true,
@@ -85,7 +85,7 @@ define('forum/topic/votes', [
const translated = await translator.translateKey('topic:users-and-others', [usersList, data.otherCount]);
doCreateTooltip(translated);
} else {
- doCreateTooltip(usersList);
+ doCreateTooltip(utils.escapeHTML(usersList));
}
}