diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-02-22 20:11:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-26 09:30:48 +0100 |
commit | d38f50d1281092c0a7d68ec7648a13041d8046c8 (patch) | |
tree | 2787db1c517fe66bf2b8a83540278b6a8f5e45c8 /qt-ui/subsurfacewebservices.cpp | |
parent | 875a9035fb6678673dfe4d55467275176159673c (diff) | |
download | subsurface-d38f50d1281092c0a7d68ec7648a13041d8046c8.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 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index ee079cc48..f5c7846d9 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -818,7 +818,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())); @@ -855,7 +855,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()); |