diff options
author | Ross Nicoll <jrn@jrn.me.uk> | 2014-08-02 19:56:06 +0100 |
---|---|---|
committer | Ross Nicoll <jrn@jrn.me.uk> | 2014-08-08 19:10:35 +0100 |
commit | c7f3876d4af37cfd6e587d0ab7ddbeaedda27857 (patch) | |
tree | c9015b1997c1b0dc3405290b2c7cb1172e4b1b5b /src/qt | |
parent | 9fcb410195935edf75bbeccaeb8a37ae4d3e5a4e (diff) |
URLs containing a / after the address no longer cause parsing errors.
Diffstat (limited to 'src/qt')
-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 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 |