Skip to content

Commit

Permalink
Remove user input from URI error message
Browse files Browse the repository at this point in the history
+ Detailed error messages for invalid address
+ Used `IsValidDestination` instead of `IsValidDestinationString`
+ Referred to #20832 for solution

Github-Pull: bitcoin-core/gui#280
Rebased-From: 3bad0b3
  • Loading branch information
unknown authored and MarcoFalke committed May 22, 2021
1 parent f2a8898 commit 46320ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/paymentserver.cpp
Expand Up @@ -241,7 +241,7 @@ void PaymentServer::handleURIOrFile(const QString& s)
tr("If you are receiving this error you should request the merchant provide a BIP21 compatible URI."),
CClientUIInterface::ICON_WARNING);
}
Q_EMIT message(tr("URI handling"), tr("Invalid payment address %1").arg(recipient.address),
Q_EMIT message(tr("URI handling"), tr("Invalid payment address"),
CClientUIInterface::MSG_ERROR);
}
else
Expand Down

0 comments on commit 46320ba

Please sign in to comment.