diff options
| author | Ross Nicoll <[email protected]> | 2014-08-02 19:56:06 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2014-08-08 19:10:35 +0100 |
| commit | c7f3876d4af37cfd6e587d0ab7ddbeaedda27857 (patch) | |
| tree | c9015b1997c1b0dc3405290b2c7cb1172e4b1b5b /src/qt/guiutil.cpp | |
| parent | qt: Remove '0 BTC' placeholder from translation (diff) | |
| download | discoin-c7f3876d4af37cfd6e587d0ab7ddbeaedda27857.tar.xz discoin-c7f3876d4af37cfd6e587d0ab7ddbeaedda27857.zip | |
URLs containing a / after the address no longer cause parsing errors.
Diffstat (limited to 'src/qt/guiutil.cpp')
| -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 33a50a078..75ae11405 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 |