From 446cbf5fe9384f0e49397e2bb7a9db1005476f56 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Sun, 20 Jan 2013 18:46:53 +0100 Subject: [PATCH] Bitcoin-Qt: extend parseBitcoinURI() pre-check - add check to verify if an URI is valid --- src/qt/guiutil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index ff70ca24..d4e73adf 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;