/pidgin/main: 95ff41a7b259: For clickable images (::op=cmd), the...

Andrew Victor andrew.victor at mxit.com
Wed Nov 7 03:39:16 EST 2012


Changeset: 95ff41a7b259cc58375e9053990a4033eb07665f
Author:	 Andrew Victor <andrew.victor at mxit.com>
Date:	 2012-11-07 10:38 +0200
Branch:	 mxit-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/95ff41a7b259

Description:

For clickable images (::op=cmd), the "replymsg" field is URI-encoded.
We therefore need to decode it.

diffstat:

 libpurple/protocols/mxit/formcmds.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/protocols/mxit/formcmds.c b/libpurple/protocols/mxit/formcmds.c
--- a/libpurple/protocols/mxit/formcmds.c
+++ b/libpurple/protocols/mxit/formcmds.c
@@ -370,7 +370,7 @@ static void command_image(struct RXMsgDa
 	reply = g_hash_table_lookup(hash, "replymsg");
 	if (reply) {
 		g_string_append_printf(msg, "\n");
-		mxit_add_html_link(mx, reply, FALSE, _( "click here" ));
+		mxit_add_html_link(mx, purple_url_decode(reply), FALSE, _( "click here" ));
 	}
 }
 



More information about the Commits mailing list