mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 02:52:12 +01:00
SearchEngines: Fixed adding GET forms as search engines from pages
This commit is contained in:
parent
f48363d484
commit
478af279da
|
@ -294,7 +294,7 @@ void SearchEnginesManager::addEngineFromForm(const QWebElement &element, WebView
|
||||||
|
|
||||||
queryItems.append(item);
|
queryItems.append(item);
|
||||||
}
|
}
|
||||||
parameterUrl.setEncodedQueryItems(queryItems + actionUrl.encodedQueryItems());
|
parameterUrl.setEncodedQueryItems(parameterUrl.encodedQueryItems() + queryItems);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!isPost) {
|
if (!isPost) {
|
||||||
|
@ -304,7 +304,7 @@ void SearchEnginesManager::addEngineFromForm(const QWebElement &element, WebView
|
||||||
SearchEngine engine;
|
SearchEngine engine;
|
||||||
engine.name = view->title();
|
engine.name = view->title();
|
||||||
engine.icon = view->icon();
|
engine.icon = view->icon();
|
||||||
engine.url = actionUrl.toString();
|
engine.url = actionUrl.toEncoded();
|
||||||
|
|
||||||
if (isPost) {
|
if (isPost) {
|
||||||
QByteArray data = parameterUrl.toEncoded(QUrl::RemoveScheme);
|
QByteArray data = parameterUrl.toEncoded(QUrl::RemoveScheme);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user