mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 19:47:30 -03:00
qt: make URI scheme comparison case insensitive
Fixes ancient issue #1460.
This commit is contained in:
parent
abf34606c0
commit
b3e579713f
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
|
||||||
//
|
//
|
||||||
// Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host,
|
// 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).
|
// which will lower-case it (and thus invalidate the address).
|
||||||
if(uri.startsWith("bitcoin://"))
|
if(uri.startsWith("bitcoin://", Qt::CaseInsensitive))
|
||||||
{
|
{
|
||||||
uri.replace(0, 10, "bitcoin:");
|
uri.replace(0, 10, "bitcoin:");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue