[qt] only allow https explorer links
As reported by Fabian Braeunlein of PS Positive Security GmbH
This commit is contained in:
parent
4dd49512e9
commit
b2211a4139
|
@ -220,8 +220,9 @@ void TransactionView::setModel(WalletModel *_model)
|
|||
QStringList listUrls = _model->getOptionsModel()->getThirdPartyTxUrls().split("|", QString::SkipEmptyParts);
|
||||
for (int i = 0; i < listUrls.size(); ++i)
|
||||
{
|
||||
QString host = QUrl(listUrls[i].trimmed(), QUrl::StrictMode).host();
|
||||
if (!host.isEmpty())
|
||||
QUrl url = QUrl(listUrls[i].trimmed(), QUrl::StrictMode);
|
||||
QString host = url.host();
|
||||
if (!host.isEmpty() && url.scheme() == "https")
|
||||
{
|
||||
QAction *thirdPartyTxUrlAction = new QAction(host, this); // use host as menu item label
|
||||
if (i == 0)
|
||||
|
|
Loading…
Reference in a new issue