mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue