diff options
author | Alexey Ivanov <alexey.ivanes@gmail.com> | 2018-03-19 14:07:17 +0300 |
---|---|---|
committer | Alexey Ivanov <alexey.ivanes@gmail.com> | 2018-03-21 15:40:08 +0300 |
commit | b7fbcc53d043eeb905652063ddc8ee39dad17dae (patch) | |
tree | 406ae37307e9c5699315149785cecf7880bf553c /src/qt/paymentserver.cpp | |
parent | 00d1680498c5550e7db1f359202d3433a092fafd (diff) |
Qt: Warn users about invalid-BIP21 URI bitcoin://
Diffstat (limited to 'src/qt/paymentserver.cpp')
-rw-r--r-- | src/qt/paymentserver.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp index 4b6fdc8d57..9f24fc7cea 100644 --- a/src/qt/paymentserver.cpp +++ b/src/qt/paymentserver.cpp @@ -404,7 +404,12 @@ void PaymentServer::handleURIOrFile(const QString& s) return; } - if (s.startsWith(BITCOIN_IPC_PREFIX, Qt::CaseInsensitive)) // bitcoin: URI + if (s.startsWith("bitcoin://", Qt::CaseInsensitive)) + { + Q_EMIT message(tr("URI handling"), tr("'bitcoin://' is not a valid URI. Use 'bitcoin:' instead."), + CClientUIInterface::MSG_ERROR); + } + else if (s.startsWith(BITCOIN_IPC_PREFIX, Qt::CaseInsensitive)) // bitcoin: URI { #if QT_VERSION < 0x050000 QUrl uri(s); |