mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-24 15:00:11 -05:00
Fix injection issue in /makegroupchat (#7424)
This commit is contained in:
parent
eee5e5fa63
commit
4be093ec56
|
|
@ -778,7 +778,7 @@ export const commands: ChatCommands = {
|
|||
}
|
||||
|
||||
const titleMsg = Utils.html`Welcome to ${parent ? room.title : user.name}'s` +
|
||||
`${!/^[0-9]+$/.test(title) ? ` ${title}` : ''}${parent ? ' subroom' : ''} groupchat!`;
|
||||
Utils.html`${!/^[0-9]+$/.test(title) ? ` ${title}` : ''}${parent ? ' subroom' : ''} groupchat!`;
|
||||
const targetRoom = Rooms.createChatRoom(roomid, `[G] ${title}`, {
|
||||
isPersonal: true,
|
||||
isPrivate: 'hidden',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user