mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
10ae00db3c
commit
ae22b7cae0
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Reference in a new issue