mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
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:
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();
|
||||
|
||||
Reference in New Issue
Block a user