mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-10 23:07:52 +00:00
Bitcoin-Qt: extend parseBitcoinURI() pre-check
- add check to verify if an URI is valid
This commit is contained in:
parent
bd85cf3df7
commit
446cbf5fe9
@ -77,7 +77,8 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent)
|
||||
|
||||
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
|
||||
{
|
||||
if(uri.scheme() != QString("bitcoin"))
|
||||
// return if URI is not valid or is no bitcoin URI
|
||||
if(!uri.isValid() || uri.scheme() != QString("bitcoin"))
|
||||
return false;
|
||||
|
||||
SendCoinsRecipient rv;
|
||||
|
Loading…
Reference in New Issue
Block a user