From 52b2564ceadce6c42fbb0a543c92aa1b9d77727b Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 22 Dec 2018 22:24:29 +0100 Subject: [PATCH] topics are now encoded to HTML --- Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js index 125e1595ad..8fe42bb61a 100644 --- a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js +++ b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js @@ -86,7 +86,7 @@ class ShowHiddenChannels { getDescription () {return "Displays channels that are hidden from you by role restrictions.";} - getVersion () {return "2.3.7";} + getVersion () {return "2.3.8";} getAuthor () {return "DevilBro";} @@ -485,7 +485,7 @@ class ShowHiddenChannels { } var htmlString = ``; if (settings.showTopic && !allowed && channel.topic && channel.topic.replace(/[\t\n\r\s]/g, "")) { - htmlString += `
Topic:
${channel.topic}
`; + htmlString += `
Topic:
${BDFDB.encodeToHTML(channel.topic)}
`; } if (allowedRoles.length > 0 || overwrittenRoles.length > 0) { htmlString += `
Allowed Roles:
`;