]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix label markup escapeing (#40600)
authorbeck-thompson <107373427+beck-thompson@users.noreply.github.com>
Sun, 28 Sep 2025 18:33:11 +0000 (11:33 -0700)
committerGitHub <noreply@github.com>
Sun, 28 Sep 2025 18:33:11 +0000 (18:33 +0000)
fix

Content.Shared/Labels/EntitySystems/LabelSystem.cs

index f60b690929f6d5f5cffa24d355d4b7a72b573c0a..2b5091b7ad674a160be75c21de6e8d3d1a2a05a8 100644 (file)
@@ -54,7 +54,7 @@ public sealed partial class LabelSystem : EntitySystem
     {
         label ??= EnsureComp<LabelComponent>(uid);
 
-        label.CurrentLabel = text;
+        label.CurrentLabel = text == null ? null : FormattedMessage.EscapeText(text);
         _nameModifier.RefreshNameModifiers(uid);
 
         Dirty(uid, label);