Another chat system sanitization fix (#7384)
This commit is contained in:
@@ -99,6 +99,10 @@ public sealed class ChatSystem : EntitySystem
|
|||||||
SendEntityEmote(source, emoteStr, hideChat);
|
SendEntityEmote(source, emoteStr, hideChat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This can happen if the entire string is sanitized out.
|
||||||
|
if (string.IsNullOrEmpty(message))
|
||||||
|
return;
|
||||||
|
|
||||||
// Otherwise, send whatever type.
|
// Otherwise, send whatever type.
|
||||||
switch (desiredType)
|
switch (desiredType)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user