From 8ed8e57012348d61234e3af6f8548e6589877c49 Mon Sep 17 00:00:00 2001 From: thez3ro Date: Mon, 17 Jul 2017 21:47:53 +0200 Subject: [PATCH] use percentEncoding for url query --- src/gui/EditWidgetIcons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/EditWidgetIcons.cpp b/src/gui/EditWidgetIcons.cpp index 4c4c35c4b..1ab9dfe4a 100644 --- a/src/gui/EditWidgetIcons.cpp +++ b/src/gui/EditWidgetIcons.cpp @@ -244,7 +244,7 @@ void EditWidgetIcons::fetchFaviconFromGoogle(const QString& domain) resetFaviconDownload(); m_fallbackToGoogle = false; QUrl faviconUrl = QUrl("https://www.google.com/s2/favicons"); - faviconUrl.setQuery("domain=" + domain); + faviconUrl.setQuery("domain=" + QUrl::toPercentEncoding(domain)); fetchFavicon(faviconUrl); } else { resetFaviconDownload();