diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-02-22 20:11:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-23 14:07:49 +0100 |
commit | ae22b7cae00bc3f55e3144a0122eb3279332ad41 (patch) | |
tree | 1ca78732214c92a016834dd1b699c674bcd587b1 /desktop-widgets/subsurfacewebservices.cpp | |
parent | 10ae00db3cf994dad1d784dfd7855c55c9153924 (diff) | |
download | subsurface-ae22b7cae00bc3f55e3144a0122eb3279332ad41.tar.gz |
Divelogs.de import: encode + character on password
Upload seems to work as is...
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.cpp')
-rw-r--r-- | desktop-widgets/subsurfacewebservices.cpp | 6 |
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 +} |