From 7c9e344cd237a1a5290531dea35cd35a7461ffcf Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Sun, 23 Mar 2025 19:46:34 -0400 Subject: [PATCH] Fix changelog entries with brackets crashing the client (#36033) --- Content.Client/Changelog/ChangelogTab.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Changelog/ChangelogTab.xaml.cs b/Content.Client/Changelog/ChangelogTab.xaml.cs index ca86f8a6b2..851ed20422 100644 --- a/Content.Client/Changelog/ChangelogTab.xaml.cs +++ b/Content.Client/Changelog/ChangelogTab.xaml.cs @@ -131,13 +131,13 @@ public sealed partial class ChangelogTab : Control Margin = new Thickness(6, 0, 0, 0), }; authorLabel.SetMessage( - FormattedMessage.FromMarkupOrThrow(Loc.GetString("changelog-author-changed", ("author", author)))); + FormattedMessage.FromMarkupOrThrow(Loc.GetString("changelog-author-changed", ("author", FormattedMessage.EscapeText(author))))); ChangelogBody.AddChild(authorLabel); foreach (var change in groupedEntry.SelectMany(c => c.Changes)) { var text = new RichTextLabel(); - text.SetMessage(FormattedMessage.FromMarkupOrThrow(change.Message)); + text.SetMessage(FormattedMessage.FromUnformatted(change.Message)); ChangelogBody.AddChild(new BoxContainer { Orientation = LayoutOrientation.Horizontal, -- 2.51.2