diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-11 15:06:13 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-11 15:06:19 +0200 |
commit | 85af3856e7330b4fcb79f1756438bbfa827a196b (patch) | |
tree | da71bf40de7cf9be721a2e3e6f489fd11cbc6ca6 /src | |
parent | ea96475d23487df975c688e8cba8b1fe254e43fd (diff) | |
parent | c7f3876d4af37cfd6e587d0ab7ddbeaedda27857 (diff) |
Merge pull request #4622
c7f3876 URLs containing a / after the address no longer cause parsing errors. (Ross Nicoll)
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/guiutil.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 38fbc48a4d..7837e4229e 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -124,6 +124,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 |