comparison libpurple/protocols/mxit/formcmds.c @ 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 cc391f752b05
children 259bbfb423d4
comparison
equal deleted inserted replaced
28659:1375fd2d9df2 28660:2b964c74de53
237 237
238 selmsg = g_hash_table_lookup(hash, "selmsg"); /* find the selection message */ 238 selmsg = g_hash_table_lookup(hash, "selmsg"); /* find the selection message */
239 replymsg = g_hash_table_lookup(hash, "replymsg"); /* find the reply message */ 239 replymsg = g_hash_table_lookup(hash, "replymsg"); /* find the reply message */
240 if ((selmsg) && (replymsg)) { 240 if ((selmsg) && (replymsg)) {
241 gchar* seltext = g_markup_escape_text(purple_url_decode(selmsg), -1); 241 gchar* seltext = g_markup_escape_text(purple_url_decode(selmsg), -1);
242 gchar* replytext = g_markup_escape_text(purple_url_decode(replymsg), -1); 242
243 243 mxit_add_html_link( mx, purple_url_decode(replymsg), seltext );
244 mxit_add_html_link( mx, replytext, seltext );
245 244
246 g_free(seltext); 245 g_free(seltext);
247 g_free(replytext);
248 } 246 }
249 } 247 }
250 248
251 249
252 /*------------------------------------------------------------------------ 250 /*------------------------------------------------------------------------