Adds a bit more sanitization to the PR announcer

Shouldn't be parsing any HTML tags inside the PR name.
This commit is contained in:
VistaPOWA
2014-04-13 20:27:27 +02:00
parent d804f9408e
commit d8d16e5eae
2 changed files with 1 additions and 1 deletions
Binary file not shown.
@@ -133,7 +133,7 @@ namespace sendkeys_ss13
for (int i = 0; i < msg.Length; i++)
{
msg[i] = Regex.Replace(msg[i], @"[\x02\x1F\x0F\x16]|\x03(\d\d?(,\d\d?)?)?", String.Empty); //Sanitizing color codes
msg[i] = Regex.Replace(msg[i], @"[\\\&\=\;]", " "); //Filtering out some iffy characters
msg[i] = Regex.Replace(msg[i], @"[\\\&\=\;\<\>]", " "); //Filtering out some iffy characters
Console.Write(msg[i] + " ");
}
Console.WriteLine();