# HG changeset patch # User Tim Ringenbach # Date 1086553880 0 # Node ID 3e0cd1c6ddc71f2938cf58d7acad48af02b75a02 # Parent f46154d6de2b767f09d19ffe5b96233545611c79 [gaim-migrate @ 10020] This fixes a weird bug i ran into where Gaim was crashing apparently because on of my buddy's status messages started with a < I wonder if this wasn't really a bug with gaim_markup_strip_html Either way, Yahoo status messages aren't html, so lets not strip them. Besides we escape the markup anyway. committer: Tailor Script diff -r f46154d6de2b -r 3e0cd1c6ddc7 src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Sun Jun 06 20:09:45 2004 +0000 +++ b/src/protocols/yahoo/yahoo.c Sun Jun 06 20:31:20 2004 +0000 @@ -2451,7 +2451,6 @@ { struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data; struct yahoo_friend *f = NULL; - char *stripped = NULL; f = g_hash_table_lookup(yd->friends, b->name); if (!f) @@ -2467,13 +2466,8 @@ case YAHOO_STATUS_CUSTOM: if (!f->msg) return NULL; - stripped = gaim_markup_strip_html(f->msg); - if (stripped) { - char *ret = g_markup_escape_text(stripped, strlen(stripped)); - g_free(stripped); - return ret; - } - return NULL; + return g_markup_escape_text(f->msg, strlen(f->msg)); + default: return g_strdup(yahoo_get_status_string(f->status)); } @@ -2499,7 +2493,7 @@ case YAHOO_STATUS_CUSTOM: if (!f->msg) return NULL; - status = gaim_markup_strip_html(f->msg); + status = g_strdup(f->msg); break; default: status = g_strdup(yahoo_get_status_string(f->status));