aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-01-21 13:58:31 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-01-21 13:58:31 -0800
commitea0a2b18f2ef03ea91b52b0fec58c5e24b840d91 (patch)
tree2b2b6d8717066ea7b24b2428e5316308ebf9a306 /src
parent0d89669fe9f7cdbc791862a19c179a52b08cfa74 (diff)
parent446cbf5fe9384f0e49397e2bb7a9db1005476f56 (diff)
Merge pull request #2193 from Diapolo/Qt_parseBitcoinURI
Bitcoin-Qt: extend parseBitcoinURI() pre-check
Diffstat (limited to 'src')
-rw-r--r--src/qt/guiutil.cpp3
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;