From: <fac...@us...> - 2006-12-02 22:59:07
|
Revision: 17882 http://svn.sourceforge.net/gaim/?rev=17882&view=rev Author: faceprint Date: 2006-12-02 14:58:59 -0800 (Sat, 02 Dec 2006) Log Message: ----------- fix the jabber parser's handling of attributes Modified Paths: -------------- trunk/libgaim/protocols/jabber/parser.c Modified: trunk/libgaim/protocols/jabber/parser.c =================================================================== --- trunk/libgaim/protocols/jabber/parser.c 2006-12-02 22:58:10 UTC (rev 17881) +++ trunk/libgaim/protocols/jabber/parser.c 2006-12-02 22:58:59 UTC (rev 17882) @@ -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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |