fix xss issue

This commit is contained in:
Corban-Lee Jones 2024-09-12 20:15:09 +01:00
parent b1328258f2
commit c53dce1848

View File

@ -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 <b>${guildName}</b>.