summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-12-07 15:40:36 +0100
committerRobert Pösel <robyer@seznam.cz>2017-12-07 15:41:30 +0100
commit420614f4a7aabd062ba5d40fa8f872e1160ea162 (patch)
tree8dca60a7826c08c8d17594794630e68cc9124d15 /protocols
parented441098d590945ca77d712e67067f8b5e35fa8e (diff)
Steam: Fix double encoding of username (fixes #781)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Steam/src/steam_proto.cpp4
-rw-r--r--protocols/Steam/src/version.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index dac637dbff..89d997024e 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -338,8 +338,8 @@ int CSteamProto::SetStatus(int new_status)
}
else
{
- ptrA username(mir_urlEncode(ptrA(mir_utf8encodeW(getWStringA("Username")))));
- if (username == NULL || username[0] == '\0')
+ T2Utf username(getWStringA("Username"));
+ if (username == NULL)
{
m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus);
diff --git a/protocols/Steam/src/version.h b/protocols/Steam/src/version.h
index 6b19a0e80a..52650230ab 100644
--- a/protocols/Steam/src/version.h
+++ b/protocols/Steam/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
#define __RELEASE_NUM 6
-#define __BUILD_NUM 2
+#define __BUILD_NUM 3
#include <stdver.h>