Merge pull request #1770 from patricklodder/1.14.3-url-sanity-check
[qt] only allow https explorer links
This commit is contained in:
commit
4ffde07033
|
@ -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