View Issue Details

IDProjectCategoryView StatusLast Update
0012671Dwarf FortressDwarf Mode -- Interface, Announcementspublic2024-01-28 14:44
ReporterBumber Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformSteamOSWindowsOS Version8.1
Product Version50.11 
Summary0012671: Popup announcements (BOX) parse unit nickname text
DescriptionMarkup text boxes (such as popup announcements, activity details, legends mode) run their message text through a parser. The message text can contain player inputted text via nicknames. The parser uses square brackets [ ] to enclose special commands, which the player can use. The non-popup part of the announcement does not parse this.

For example, nicknaming a unit "[C:4:0:0]Urist" can result in an announcement "[C:4:0:0]Urist, Miner has created X, a Y! He offers it to Z." and a popup "Urist, Miner has created X, a Y! He offers it to Z." with the popup's text in red.

Even if the player isn't deliberately trying to use the parsed codes, the popup will still be removing single square brackets and replacing "[[" with "[". Either square brackets need to be prohibited in nicknames, or a proper fix needs to be implemented to sanitize the input so it displays as intended.
Steps To Reproduce1. Nickname a unit using square brackets [ ].
2. Have the unit's nickname appear in a popup.
TagsNo tags attached.

Activities

Bumber

2024-01-28 14:44

reporter   ~0042021

This issue replaces 0011813, which was fixed as a result of the v50 overhaul.

Add Note

Note

Issue History

Date Modified Username Field Change
2024-01-28 14:42 Bumber New Issue
2024-01-28 14:44 Bumber Note Added: 0042021