1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

SearchEngines: Fixed adding GET forms as search engines from pages

This commit is contained in:
nowrep 2013-11-09 16:14:54 +01:00
parent f48363d484
commit 478af279da

View File

@ -294,7 +294,7 @@ void SearchEnginesManager::addEngineFromForm(const QWebElement &element, WebView
queryItems.append(item);
}
parameterUrl.setEncodedQueryItems(queryItems + actionUrl.encodedQueryItems());
parameterUrl.setEncodedQueryItems(parameterUrl.encodedQueryItems() + queryItems);
#endif
if (!isPost) {
@ -304,7 +304,7 @@ void SearchEnginesManager::addEngineFromForm(const QWebElement &element, WebView
SearchEngine engine;
engine.name = view->title();
engine.icon = view->icon();
engine.url = actionUrl.toString();
engine.url = actionUrl.toEncoded();
if (isPost) {
QByteArray data = parameterUrl.toEncoded(QUrl::RemoveScheme);