fix xss issue
This commit is contained in:
parent
b1328258f2
commit
c53dce1848
@ -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>.
|
||||
|
Loading…
x
Reference in New Issue
Block a user