diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-01-20 18:46:53 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-01-21 07:48:54 +0100 |
commit | 446cbf5fe9384f0e49397e2bb7a9db1005476f56 (patch) | |
tree | 14ecf0d671b0bcb5c3347854b98370d492a087ce /src | |
parent | bd85cf3df786898fa0e1f584eca840d3ec05edb2 (diff) |
Bitcoin-Qt: extend parseBitcoinURI() pre-check
- add check to verify if an URI is valid
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/guiutil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index ff70ca24af..d4e73adf96 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -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; |