summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-05-19 19:18:46 +0200
committerTannin <sherb@gmx.net>2016-05-19 19:18:46 +0200
commitc3b7737ae46ad4770532e3380c9ceb6ed4d14cf7 (patch)
treea70c5fc99f29a1cfe24cbdfae9013977e19af37b /src
parent30878ae39460e14fe0a8ba0c06b3db6d16e73715 (diff)
bugfix: incorrect url-encoding for passwords prevented login with some special characters
Diffstat (limited to 'src')
-rw-r--r--src/nxmaccessmanager.cpp4
-rw-r--r--src/settingsdialog.ui4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/nxmaccessmanager.cpp b/src/nxmaccessmanager.cpp
index a0b9c01f..3f90647b 100644
--- a/src/nxmaccessmanager.cpp
+++ b/src/nxmaccessmanager.cpp
@@ -247,8 +247,8 @@ void NXMAccessManager::pageLogin()
QByteArray postDataQuery;
QUrlQuery postData;
postData.addQueryItem("username", m_Username);
- postData.addQueryItem("password", m_Password);
- postDataQuery = postData.query(QUrl::FullyEncoded).toUtf8();
+ postData.addQueryItem("password", QUrl::toPercentEncoding(m_Password));
+ postDataQuery = postData.query(QUrl::EncodeReserved).toUtf8();
request.setRawHeader("User-Agent", userAgent().toUtf8());
diff --git a/src/settingsdialog.ui b/src/settingsdialog.ui
index 2a4b5589..9ebed3b8 100644
--- a/src/settingsdialog.ui
+++ b/src/settingsdialog.ui
@@ -1052,7 +1052,9 @@ For the other games this is not a sufficient replacement for AI!</string>
</item>
</layout>
</widget>
- <resources/>
+ <resources>
+ <include location="resources.qrc"/>
+ </resources>
<connections>
<connection>
<sender>buttonBox</sender>