pidgin: 67d93c59: On MSN, escape the password since it's i...

qulogic at pidgin.im qulogic at pidgin.im
Fri Aug 1 01:20:45 EDT 2008


-----------------------------------------------------------------
Revision: 67d93c5938a1e54d3a5e25c3ef54a12d7ff73c94
Ancestor: 9e3f088fc7df07bdb891f336b152797fd4f1ff07
Author: qulogic at pidgin.im
Date: 2008-08-01T02:02:07
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/67d93c5938a1e54d3a5e25c3ef54a12d7ff73c94

Modified files:
        libpurple/protocols/msn/nexus.c

ChangeLog: 

On MSN, escape the password since it's in an XML document. Didn't 
escape the username because it should be an email address, that 
hopefully wouldn't require it.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/nexus.c	c9fa9911faf55797d8249a045192e879ca971dcc
+++ libpurple/protocols/msn/nexus.c	01645981157b953780ce1b7105aae7b99ee9840e
@@ -390,7 +390,7 @@ msn_nexus_connect(MsnNexus *nexus)
 	msn_session_set_login_step(session, MSN_LOGIN_STEP_GET_COOKIE);
 
 	username = purple_account_get_username(session->account);
-	password = g_strndup(purple_connection_get_password(session->account->gc), 16);
+	password = g_markup_escape_text(purple_connection_get_password(session->account->gc), 16);
 
 	purple_debug_info("msn", "Logging on %s, with policy '%s', nonce '%s'\n",
 	                  username, nexus->policy, nexus->nonce);


More information about the Commits mailing list