aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletcontroller.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-09-08 16:40:05 -0400
committerAndrew Chow <achow101-github@achow101.com>2019-09-08 16:40:05 -0400
commit1770a972d471d2bdb36195ec370b6fc238649f4d (patch)
tree9161687066c65ebe94496547bc4771a1867637f6 /src/qt/walletcontroller.cpp
parent189c19e012427a0068fc51b9fcb1428dc28aa681 (diff)
downloadbitcoin-1770a972d471d2bdb36195ec370b6fc238649f4d.tar.xz
HTML escape the wallet name in more dialogs and notifications
Diffstat (limited to 'src/qt/walletcontroller.cpp')
-rw-r--r--src/qt/walletcontroller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/walletcontroller.cpp b/src/qt/walletcontroller.cpp
index 1a4f51c066..8b8283d3d8 100644
--- a/src/qt/walletcontroller.cpp
+++ b/src/qt/walletcontroller.cpp
@@ -75,7 +75,7 @@ void WalletController::closeWallet(WalletModel* wallet_model, QWidget* parent)
{
QMessageBox box(parent);
box.setWindowTitle(tr("Close wallet"));
- box.setText(tr("Are you sure you wish to close wallet <i>%1</i>?").arg(wallet_model->getDisplayName()));
+ box.setText(tr("Are you sure you wish to close wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(wallet_model->getDisplayName())));
box.setInformativeText(tr("Closing the wallet for too long can result in having to resync the entire chain if pruning is enabled."));
box.setStandardButtons(QMessageBox::Yes|QMessageBox::Cancel);
box.setDefaultButton(QMessageBox::Yes);