aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-08-11 15:06:13 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-08-11 15:06:19 +0200
commit85af3856e7330b4fcb79f1756438bbfa827a196b (patch)
treeda71bf40de7cf9be721a2e3e6f489fd11cbc6ca6 /src/qt
parentea96475d23487df975c688e8cba8b1fe254e43fd (diff)
parentc7f3876d4af37cfd6e587d0ab7ddbeaedda27857 (diff)
Merge pull request #4622
c7f3876 URLs containing a / after the address no longer cause parsing errors. (Ross Nicoll)
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/guiutil.cpp4
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