HomePhabricator

HTML escape the wallet name in dialogs and notifications

Description

HTML escape the wallet name in dialogs and notifications

Summary:
Qt interprets HTML and uses the first ampersand in a string to specify hot key.
Escape HTML and ampersands in wallet names to display them unambigously.

Backport of Core PR16826

Test Plan:
ninja && ninja check

Run bitcoin-qt and create a new wallet called "Hel&lo <b>World</b>,
and make sure it is display as a raw string everywhere
(send transaction dialog, Open Wallet menu)

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7931

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Oct 15 2020, 12:31
PiRKCommitted on Oct 15 2020, 12:31
abc-botPushed on Oct 15 2020, 12:37
Reviewer
Restricted Owners Package
Differential Revision
D7931: HTML escape the wallet name in dialogs and notifications
Parents
rABCeba575e95d47: [backport#14862]Declare BlockValidity:HEADER reserved
Branches
Unknown
Tags
Unknown