summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2012-03-21 12:57:07 (GMT)
committerChristian Franke <nobody@nowhere.ws>2012-03-21 13:19:59 (GMT)
commit29b9b59f625adc2dcb9e6fb18e123d2c640cabfd (patch)
tree380f2c0ccf20c661bab42b3383ad4b7264d3697a
parentbb03f89482c8da166f025a36760a5ecc71c82e4e (diff)
Fill in placeholders for POST parameters, tooqopensearch
-rw-r--r--src/opensearchengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opensearchengine.cpp b/src/opensearchengine.cpp
index a0dfa6d..7209d44 100644
--- a/src/opensearchengine.cpp
+++ b/src/opensearchengine.cpp
@@ -530,7 +530,7 @@ void OpenSearchEngine::requestSuggestions(const QString &searchTerm)
Parameters::const_iterator end = d->suggestionsParameters.constEnd();
Parameters::const_iterator i = d->suggestionsParameters.constBegin();
for (; i != end; ++i)
- parameters.append(i->first + QLatin1String("=") + i->second);
+ parameters.append(i->first + QLatin1String("=") + parseTemplate(searchTerm, i->second));
QByteArray data = parameters.join(QLatin1String("&")).toUtf8();
d->suggestionsReply = d->networkAccessManager->post(QNetworkRequest(suggestionsUrl(searchTerm)), data);
@@ -565,7 +565,7 @@ void OpenSearchEngine::requestSearchResults(const QString &searchTerm)
Parameters::const_iterator end = d->searchParameters.constEnd();
Parameters::const_iterator i = d->searchParameters.constBegin();
for (; i != end; ++i)
- parameters.append(i->first + QLatin1String("=") + i->second);
+ parameters.append(i->first + QLatin1String("=") + parseTemplate(searchTerm, i->second));
data = parameters.join(QLatin1String("&")).toUtf8();
}