fix xss vulnerability
This commit is contained in:
parent
b8249b80dc
commit
3c15a4f4aa
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public class VM
|
|||
await cvm.SendChat($"@{username} No messages found for {args[0]}");
|
||||
return;
|
||||
}
|
||||
await cvm.SendXSSChat($"\"{chat[0].Message}\" - {chat[0].Username}");
|
||||
await cvm.SendXSSChat($"\"{WebUtility.HtmlEncode(chat[0].Message)}\" - {chat[0].Username}");
|
||||
}
|
||||
|
||||
private void CvmOnConnectionClosed(object? sender, EventArgs e)
|
||||
|
|
Loading…
Reference in a new issue