Browse Source

URLs containing a / after the address no longer cause parsing errors.

0.10
Ross Nicoll 10 years ago
parent
commit
c7f3876d4a
  1. 4
      src/qt/guiutil.cpp

4
src/qt/guiutil.cpp

@ -117,6 +117,10 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out) @@ -117,6 +117,10 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
SendCoinsRecipient rv;
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;
#if QT_VERSION < 0x050000

Loading…
Cancel
Save