Fix injection issue in /makegroupchat (#7424)

This commit is contained in:
Charlie Kobayashi 2020-09-26 23:30:57 -04:00 committed by GitHub
parent eee5e5fa63
commit 4be093ec56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',