changeset 28660:2b964c74de53

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.
author andrew.victor@mxit.com
date Wed, 25 Nov 2009 08:42:10 +0000
parents 1375fd2d9df2
children 588a7aef5f7c
files libpurple/protocols/mxit/formcmds.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/formcmds.c	Wed Nov 25 08:17:02 2009 +0000
+++ b/libpurple/protocols/mxit/formcmds.c	Wed Nov 25 08:42:10 2009 +0000
@@ -239,12 +239,10 @@
 	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);
 	}
 }