/pidgin/main: dcff8ce68d1b: Remote smileys: fix a xmpp bug of no...

Tomasz Wasilczyk twasilczyk at pidgin.im
Sat Apr 5 18:01:09 EDT 2014


Changeset: dcff8ce68d1b61babc1e180cf247519a7171acba
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-06 00:01 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/dcff8ce68d1b

Description:

Remote smileys: fix a xmpp bug of non-escaped custom smileys

diffstat:

 libpurple/protocols/jabber/message.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff --git a/libpurple/protocols/jabber/message.c b/libpurple/protocols/jabber/message.c
--- a/libpurple/protocols/jabber/message.c
+++ b/libpurple/protocols/jabber/message.c
@@ -439,7 +439,9 @@ jabber_message_xml_to_string_strip_img_s
 						out = g_string_append(out, safe_alt);
 						g_free(safe_alt);
 					} else {
-						out = g_string_append(out, alt);
+						gchar *alt_escaped = g_markup_escape_text(alt, -1);
+						out = g_string_append(out, alt_escaped);
+						g_free(alt_escaped);
 					}
 				} else {
 					out = g_string_append(out, src);



More information about the Commits mailing list