HTML escape address labels in more dialogs and notifications
This commit is contained in:
parent
1770a972d4
commit
2c530ea2ad
2 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ void SendCoinsDialog::on_sendButton_clicked()
|
|||
{
|
||||
if(rcp.label.length() > 0) // label with address
|
||||
{
|
||||
recipientElement.append(tr("%1 to '%2'").arg(amount, rcp.label));
|
||||
recipientElement.append(tr("%1 to '%2'").arg(amount, GUIUtil::HtmlEscape(rcp.label)));
|
||||
recipientElement.append(QString(" (%1)").arg(address));
|
||||
}
|
||||
else // just address
|
||||
|
|
|
@ -170,7 +170,7 @@ void WalletView::processNewTransaction(const QModelIndex& parent, int start, int
|
|||
QString type = ttm->index(start, TransactionTableModel::Type, parent).data().toString();
|
||||
QModelIndex index = ttm->index(start, 0, parent);
|
||||
QString address = ttm->data(index, TransactionTableModel::AddressRole).toString();
|
||||
QString label = ttm->data(index, TransactionTableModel::LabelRole).toString();
|
||||
QString label = GUIUtil::HtmlEscape(ttm->data(index, TransactionTableModel::LabelRole).toString());
|
||||
|
||||
Q_EMIT incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address, label, GUIUtil::HtmlEscape(walletModel->getWalletName()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue