Qt: Warn users about invalid-BIP21 URI bitcoin://

This commit is contained in:
Alexey Ivanov
2018-03-19 14:07:17 +03:00
parent 00d1680498
commit b7fbcc53d0
3 changed files with 7 additions and 10 deletions

View File

@@ -209,14 +209,6 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
{
// Convert bitcoin:// to bitcoin:
//
// Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host,
// which will lower-case it (and thus invalidate the address).
if(uri.startsWith("bitcoin://", Qt::CaseInsensitive))
{
uri.replace(0, 10, "bitcoin:");
}
QUrl uriInstance(uri);
return parseBitcoinURI(uriInstance, out);
}