summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2012-03-21 13:06:37 (GMT)
committerChristian Franke <nobody@nowhere.ws>2012-03-21 13:20:25 (GMT)
commit6f48161222251f96e5ded3db28045295ee576b46 (patch)
tree23e40a082857e68c4c4303d7c921dc14dadb3b3d
parent4a0c4288e7d832f8cd72eefde6afe8fc535f5e73 (diff)
qopensearch update:
commit 29b9b59f625adc2dcb9e6fb18e123d2c640cabfd Author: Christian Franke <nobody@nowhere.ws> Date: Wed Mar 21 13:57:07 2012 +0100 Fill in placeholders for POST parameters, too
-rw-r--r--src/opensearch/src/opensearchengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opensearch/src/opensearchengine.cpp b/src/opensearch/src/opensearchengine.cpp
index a0dfa6d..7209d44 100644
--- a/src/opensearch/src/opensearchengine.cpp
+++ b/src/opensearch/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();
}