changeset 15096:22d14df59ce4

[gaim-migrate @ 17882] fix the jabber parser's handling of attributes committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 02 Dec 2006 22:58:59 +0000
parents a41a35ffb1bf
children 060594ebbef9
files libgaim/protocols/jabber/parser.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/jabber/parser.c	Sat Dec 02 22:58:10 2006 +0000
+++ b/libgaim/protocols/jabber/parser.c	Sat Dec 02 22:58:59 2006 +0000
@@ -72,10 +72,14 @@
 		xmlnode_set_namespace(node, (const char*) namespace);
 
 		for(i=0; i < nb_attributes * 5; i+=5) {
+			char *txt;
 			int attrib_len = attributes[i+4] - attributes[i+3];
 			char *attrib = g_malloc(attrib_len + 1);
 			memcpy(attrib, attributes[i+3], attrib_len);
 			attrib[attrib_len] = '\0';
+			txt = attrib;
+			attrib = gaim_unescape_html(txt);
+			g_free(txt);
 			xmlnode_set_attrib(node, (const char*) attributes[i], attrib);
 			g_free(attrib);
 		}