From 420614f4a7aabd062ba5d40fa8f872e1160ea162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 7 Dec 2017 15:40:36 +0100 Subject: Steam: Fix double encoding of username (fixes #781) --- protocols/Steam/src/steam_proto.cpp | 4 ++-- protocols/Steam/src/version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Steam') 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 -- cgit v1.2.3