From c53dce1848b4568f22a37f16353bd7764a636009 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Thu, 12 Sep 2024 20:15:09 +0100 Subject: [PATCH] fix xss issue --- apps/static/js/home/subscriptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/static/js/home/subscriptions.js b/apps/static/js/home/subscriptions.js index 1ef5e58..b4be770 100644 --- a/apps/static/js/home/subscriptions.js +++ b/apps/static/js/home/subscriptions.js @@ -525,7 +525,7 @@ async function loadChannelOptions(guildId) { if (getCurrentlyActiveServer().guild_id === guildId) $("#serverJoinAlert").show(); - const guildName = getServerFromSnowflake(guildId).name; + const guildName = sanitise(getServerFromSnowflake(guildId).name); throw new Error( `Unable to retrieve channels from Guild ${guildName}.