mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
Merge pull request #4622
c7f3876
URLs containing a / after the address no longer cause parsing errors. (Ross Nicoll)
This commit is contained in:
commit
85af3856e7
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue