aboutsummaryrefslogtreecommitdiff
path: root/src/qt/paymentserver.cpp
diff options
context:
space:
mode:
authorAlexey Ivanov <[email protected]>2018-03-19 14:07:17 +0300
committerAlexey Ivanov <[email protected]>2018-03-21 15:40:08 +0300
commitb7fbcc53d043eeb905652063ddc8ee39dad17dae (patch)
tree406ae37307e9c5699315149785cecf7880bf553c /src/qt/paymentserver.cpp
parentMerge #12710: Append scripts to new test_list array to fix bad assignment (diff)
downloaddiscoin-b7fbcc53d043eeb905652063ddc8ee39dad17dae.tar.xz
discoin-b7fbcc53d043eeb905652063ddc8ee39dad17dae.zip
Qt: Warn users about invalid-BIP21 URI bitcoin://
Diffstat (limited to 'src/qt/paymentserver.cpp')
-rw-r--r--src/qt/paymentserver.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp
index 4b6fdc8d5..9f24fc7ce 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);