mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-06-01 08:02:08 -05:00
Make sure to sanatise the tournament type
This commit is contained in:
parent
a2aa4ac7d2
commit
c449f4ef73
|
|
@ -124,7 +124,7 @@
|
|||
|
||||
switch (cmd) {
|
||||
case 'create':
|
||||
this.room.$chat.append("<div class=\"notice tournament-message-create\">A " + BattleFormats[data.shift()].name + " " + data.join('|') + " Tournament has been created.</div>");
|
||||
this.room.$chat.append("<div class=\"notice tournament-message-create\">A " + BattleFormats[data.shift()].name + " " + Tools.escapeHTML(data.join('|')) + " Tournament has been created.</div>");
|
||||
break;
|
||||
|
||||
case 'join':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user