Skip to content

Commit

Permalink
URLs containing a / after the address no longer cause parsing errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Nicoll committed Aug 8, 2014
1 parent 9fcb410 commit c7f3876
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7f3876

Please sign in to comment.