Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | if (!s.startsWith(scheme + ":", Qt::CaseInsensitive)) { | ||||
return false; | return false; | ||||
} | } | ||||
QUrlQuery uri((QUrl(s))); | QUrlQuery uri((QUrl(s))); | ||||
// payment request URI | // payment request URI | ||||
if (uri.hasQueryItem("r")) { | if (uri.hasQueryItem("r")) { | ||||
#ifdef ENABLE_BIP70 | #ifdef ENABLE_BIP70 | ||||
QByteArray temp; | QByteArray temp; | ||||
temp.append(uri.queryItemValue("r")); | temp.append(uri.queryItemValue("r").toUtf8()); | ||||
QString decoded = QUrl::fromPercentEncoding(temp); | QString decoded = QUrl::fromPercentEncoding(temp); | ||||
QUrl fetchUrl(decoded, QUrl::StrictMode); | QUrl fetchUrl(decoded, QUrl::StrictMode); | ||||
if (fetchUrl.isValid()) { | if (fetchUrl.isValid()) { | ||||
qDebug() << "PaymentServer::handleURIOrFile: fetchRequest(" | qDebug() << "PaymentServer::handleURIOrFile: fetchRequest(" | ||||
<< fetchUrl << ")"; | << fetchUrl << ")"; | ||||
fetchRequest(fetchUrl); | fetchRequest(fetchUrl); | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 587 Lines • Show Last 20 Lines |