From ae22b7cae00bc3f55e3144a0122eb3279332ad41 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Mon, 22 Feb 2016 20:11:22 +0200 Subject: Divelogs.de import: encode + character on password Upload seems to work as is... Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- desktop-widgets/subsurfacewebservices.cpp | 6 +++--- 1 file 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 +} -- cgit v1.2.3-70-g09d2