summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-10-22 04:25:09 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-10-22 04:25:09 +0000
commitfe78fe18730dd2ff4e9ea0241c0786f6002ea698 (patch)
treee5149618a8940983dedc2b5a821f6f876df08054 /net-im/gaim/files/gaim-0.71-jabber-strip.patch
parentAdd patches for Jabber encryption and IPV6 from a few very helpful people... (diff)
downloadgentoo-2-fe78fe18730dd2ff4e9ea0241c0786f6002ea698.tar.gz
gentoo-2-fe78fe18730dd2ff4e9ea0241c0786f6002ea698.tar.bz2
gentoo-2-fe78fe18730dd2ff4e9ea0241c0786f6002ea698.zip
Add patches for Jabber encryption and IPV6 from a few very helpful people...
bugs #31303 #30946
Diffstat (limited to 'net-im/gaim/files/gaim-0.71-jabber-strip.patch')
-rw-r--r--net-im/gaim/files/gaim-0.71-jabber-strip.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-im/gaim/files/gaim-0.71-jabber-strip.patch b/net-im/gaim/files/gaim-0.71-jabber-strip.patch
new file mode 100644
index 000000000000..808ebb0024cb
--- /dev/null
+++ b/net-im/gaim/files/gaim-0.71-jabber-strip.patch
@@ -0,0 +1,18 @@
+diff -ruN gaim-0.71/src/protocols/jabber/message.c gaim-0.71-r1/src/protocols/jabber/message.c
+--- gaim-0.71/src/protocols/jabber/message.c 2003-10-09 16:01:01.000000000 -0500
++++ gaim-0.71-r1/src/protocols/jabber/message.c 2003-10-16 14:46:14.000000000 -0500
+@@ -228,13 +228,8 @@
+ } else if(!strcmp(child->name, "body")) {
+ if(!jm->body)
+ jm->body = xmlnode_get_data(child);
+- } else if(!strcmp(child->name, "html") && child->child) {
+- /* check to see if the <html> actually contains anything,
+- * otherwise we'll ignore it */
+- char *txt = xmlnode_get_data(child);
+- if(!jm->xhtml && txt)
++ } else if(!strcmp(child->name, "html")) {
+ jm->xhtml = xmlnode_to_str(child);
+- g_free(txt);
+ } else if(!strcmp(child->name, "error")) {
+ const char *code = xmlnode_get_attrib(child, "code");
+ char *code_txt = NULL;