use percentEncoding for url query

This commit is contained in:
thez3ro 2017-07-17 21:47:53 +02:00 committed by Janek Bevendorff
parent 691e60d72b
commit 8ed8e57012

View File

@ -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();