mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
URLs containing a / after the address no longer cause parsing errors.
This commit is contained in:
parent
9fcb410195
commit
c7f3876d4a
@ -117,6 +117,10 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
|
|||||||
|
|
||||||
SendCoinsRecipient rv;
|
SendCoinsRecipient rv;
|
||||||
rv.address = uri.path();
|
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;
|
rv.amount = 0;
|
||||||
|
|
||||||
#if QT_VERSION < 0x050000
|
#if QT_VERSION < 0x050000
|
||||||
|
Loading…
Reference in New Issue
Block a user