From 8eee60da3a6d8f786e9e34418b4a62886e7dac63 Mon Sep 17 00:00:00 2001 From: mirrorcult Date: Fri, 1 Apr 2022 20:09:54 -0700 Subject: [PATCH] Another chat system sanitization fix (#7384) --- Content.Server/Chat/ChatSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/Chat/ChatSystem.cs b/Content.Server/Chat/ChatSystem.cs index 77242b9928..fffc299d2b 100644 --- a/Content.Server/Chat/ChatSystem.cs +++ b/Content.Server/Chat/ChatSystem.cs @@ -99,6 +99,10 @@ public sealed class ChatSystem : EntitySystem SendEntityEmote(source, emoteStr, hideChat); } + // This can happen if the entire string is sanitized out. + if (string.IsNullOrEmpty(message)) + return; + // Otherwise, send whatever type. switch (desiredType) {