]> Git Repo - VerusCoin.git/commitdiff
URLs containing a / after the address no longer cause parsing errors.
authorRoss Nicoll <[email protected]>
Sat, 2 Aug 2014 18:56:06 +0000 (19:56 +0100)
committerRoss Nicoll <[email protected]>
Fri, 8 Aug 2014 18:10:35 +0000 (19:10 +0100)
src/qt/guiutil.cpp

index 33a50a078dad5475ab3212730496b46ce454808b..75ae11405901617d1831be57b58c6976e78a00a0 100644 (file)
@@ -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
This page took 0.027839 seconds and 4 git commands to generate.