From 9ceadac2994e3c4a4ab704f9a6efcb7405aab56e Mon Sep 17 00:00:00 2001 From: thez3ro Date: Sun, 2 Jul 2017 11:39:52 +0200 Subject: [PATCH] fix google favicon download over https --- src/core/Entry.cpp | 6 +++--- src/gui/EditWidgetIcons.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index ec80ff29..cb4c8cff 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -802,13 +802,13 @@ QString Entry::resolveUrl(const QString& url) const } QUrl uurl = QUrl(newurl); - if(uurl.scheme() == "cmd") { - // URL is a cmd, hopefully the second argument it's an URL + if (uurl.scheme() == "cmd") { + // URL is a cmd, hopefully the second argument is an URL QStringList cmd = newurl.split(" "); if (cmd.size() > 1) { return resolveUrl(cmd[1].remove("'").remove("\"")); } - } else if(uurl.scheme() == "http" || uurl.scheme() == "https") { + } else if (uurl.scheme() == "http" || uurl.scheme() == "https") { // URL is nice return uurl.url(); } diff --git a/src/gui/EditWidgetIcons.cpp b/src/gui/EditWidgetIcons.cpp index e2c75c96..55bfae67 100644 --- a/src/gui/EditWidgetIcons.cpp +++ b/src/gui/EditWidgetIcons.cpp @@ -242,7 +242,7 @@ void EditWidgetIcons::fetchFaviconFromGoogle(const QString& domain) if (config()->get("security/IconDownloadFallbackToGoogle", false).toBool() && m_fallbackToGoogle) { resetFaviconDownload(); m_fallbackToGoogle = false; - fetchFavicon(QUrl("http://www.google.com/s2/favicons?domain=" + domain)); + fetchFavicon(QUrl("https://www.google.com/s2/favicons?domain=" + domain)); } else { resetFaviconDownload(); MessageBox::warning(this, tr("Error"), tr("Unable to fetch favicon."));