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>
This commit is contained in:
Miika Turkia 2016-02-22 20:11:22 +02:00 committed by Dirk Hohndel
parent 10ae00db3c
commit ae22b7cae0

View file

@ -821,7 +821,7 @@ void DivelogsDeWebServices::startDownload()
QUrlQuery body; QUrlQuery body;
body.addQueryItem("user", ui.userID->text()); 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()); reply = manager()->post(request, body.query(QUrl::FullyEncoded).toLatin1());
connect(reply, SIGNAL(finished()), this, SLOT(listDownloadFinished())); connect(reply, SIGNAL(finished()), this, SLOT(listDownloadFinished()));
@ -858,7 +858,7 @@ void DivelogsDeWebServices::listDownloadFinished()
QUrlQuery body; QUrlQuery body;
body.addQueryItem("user", ui.userID->text()); 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); body.addQueryItem("ids", diveList.idList);
reply = manager()->post(request, body.query(QUrl::FullyEncoded).toLatin1()); reply = manager()->post(request, body.query(QUrl::FullyEncoded).toLatin1());