Browse Source

Merge pull request #4622

c7f3876 URLs containing a / after the address no longer cause parsing errors. (Ross Nicoll)
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
85af3856e7
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/qt/guiutil.cpp

4
src/qt/guiutil.cpp

@ -124,6 +124,10 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
SendCoinsRecipient rv; SendCoinsRecipient rv;
rv.address = uri.path(); rv.address = uri.path();
// Trim any following forward slash which may have been added by the OS
if (rv.address.endsWith("/")) {
rv.address.truncate(rv.address.length() - 1);
}
rv.amount = 0; rv.amount = 0;
#if QT_VERSION < 0x050000 #if QT_VERSION < 0x050000

Loading…
Cancel
Save