View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012671 | Dwarf Fortress | Dwarf Mode -- Interface, Announcements | public | 2024-01-28 14:42 | 2024-01-28 14:44 |
Reporter | Bumber | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Steam | OS | Windows | OS Version | 8.1 |
Product Version | 50.11 | ||||
Summary | 0012671: Popup announcements (BOX) parse unit nickname text | ||||
Description | Markup 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 Reproduce | 1. Nickname a unit using square brackets [ ]. 2. Have the unit's nickname appear in a popup. | ||||
Tags | No tags attached. | ||||