aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <jrn@jrn.me.uk>2014-08-02 19:56:06 +0100
committerRoss Nicoll <jrn@jrn.me.uk>2014-08-08 19:10:35 +0100
commitc7f3876d4af37cfd6e587d0ab7ddbeaedda27857 (patch)
treec9015b1997c1b0dc3405290b2c7cb1172e4b1b5b /src/qt/guiutil.cpp
parent9fcb410195935edf75bbeccaeb8a37ae4d3e5a4e (diff)
URLs containing a / after the address no longer cause parsing errors.
Diffstat (limited to 'src/qt/guiutil.cpp')
-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 33a50a078d..75ae114059 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -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