aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/subsurfacewebservices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.cpp')
-rw-r--r--desktop-widgets/subsurfacewebservices.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp
index 4d17e76aa..0dd9ad4ef 100644
--- a/desktop-widgets/subsurfacewebservices.cpp
+++ b/desktop-widgets/subsurfacewebservices.cpp
@@ -821,7 +821,7 @@ void DivelogsDeWebServices::startDownload()
QUrlQuery body;
body.addQueryItem("user", ui.userID->text());
- body.addQueryItem("pass", ui.password->text());
+ body.addQueryItem("pass", ui.password->text().replace("+", "%2b"));
reply = manager()->post(request, body.query(QUrl::FullyEncoded).toLatin1());
connect(reply, SIGNAL(finished()), this, SLOT(listDownloadFinished()));
@@ -858,7 +858,7 @@ void DivelogsDeWebServices::listDownloadFinished()
QUrlQuery body;
body.addQueryItem("user", ui.userID->text());
- body.addQueryItem("pass", ui.password->text());
+ body.addQueryItem("pass", ui.password->text().replace("+", "%2b"));
body.addQueryItem("ids", diveList.idList);
reply = manager()->post(request, body.query(QUrl::FullyEncoded).toLatin1());
@@ -1028,4 +1028,4 @@ QNetworkReply* UserSurveyServices::sendSurvey(QString values)
request.setRawHeader("User-Agent", userAgent.toUtf8());
reply = manager()->get(request);
return reply;
-} \ No newline at end of file
+}