diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-24 11:33:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-24 11:33:25 +0300 |
commit | 2c369e66feacfb3b934b1ec28fcecd179d796ba1 (patch) | |
tree | 4882960dfa1b0c2fddb8c1b4f01e2ddf537f4962 /protocols/JabberG/src/jabber_iqid.cpp | |
parent | f5333c257d4b23bb5f37ab3380dd69191f71429c (diff) |
Jabber: user name to be encoded to avoid spaces
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_iqid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp index 690e936ad8..5f8736b31e 100755 --- a/protocols/JabberG/src/jabber_iqid.cpp +++ b/protocols/JabberG/src/jabber_iqid.cpp @@ -239,7 +239,7 @@ void CJabberProto::OnIqResultGetAuth(const TiXmlElement *iqNode, CJabberIqInfo*) if (!mir_strcmp(type, "result")) {
XmlNodeIq iq(AddIQ(&CJabberProto::OnIqResultSetAuth, JABBER_IQ_TYPE_SET));
auto *query = iq << XQUERY("jabber:iq:auth");
- query << XCHILD("username", m_ThreadInfo->conn.username);
+ query << XCHILD("username", EncodeJid(m_ThreadInfo->conn.username));
if (XmlFirstChild(queryNode, "digest") != nullptr && m_ThreadInfo->szStreamId) {
JabberShaStrBuf buf;
char text[200];
|