pidgin.mxit: 941ed993: The data sent back to MXit when the user...

andrew.victor at mxit.com andrew.victor at mxit.com
Wed Nov 25 03:45:43 EST 2009


-----------------------------------------------------------------
Revision: 941ed993edbcb85fcad21b12e2b914a4e9b248d1
Ancestor: c9a867360c376bfba2585b047339ffebf3ba6534
Author: andrew.victor at mxit.com
Date: 2009-11-25T08:42:10
Branch: im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/941ed993edbcb85fcad21b12e2b914a4e9b248d1

Modified files:
        libpurple/protocols/mxit/formcmds.c

ChangeLog: 

The data sent back to MXit when the user clicks on a link should be sent
back as-is (ie, not uri encoded).  Since the link data was received within a 
"::type=reply" command, any occurances of %3a do need to be decoded.


-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/formcmds.c	669d971c6034a96bdf54932edd403a4183d861c7
+++ libpurple/protocols/mxit/formcmds.c	c5de50260923ea015663f162300d9fbc597028bd
@@ -239,12 +239,10 @@ static void command_reply(struct RXMsgDa
 	replymsg = g_hash_table_lookup(hash, "replymsg");		/* find the reply message */
 	if ((selmsg) && (replymsg)) {
 		gchar*	seltext = g_markup_escape_text(purple_url_decode(selmsg), -1);
-		gchar*	replytext = g_markup_escape_text(purple_url_decode(replymsg), -1);
 
-		mxit_add_html_link( mx, replytext, seltext );
+		mxit_add_html_link( mx, purple_url_decode(replymsg), seltext );
 
 		g_free(seltext);
-		g_free(replytext);
 	}
 }
 


More information about the Commits mailing list