# HG changeset patch # User Mark Doliner # Date 1079490303 0 # Node ID 16485e87b7bb3976b10efbed44a22f0367c83738 # Parent 03b9ce930f0ddd59052ac80c76c57e7fefaabfd1 [gaim-migrate @ 9191] Fix a problem displaying AIM tooltips with the dude or chick has an away message containing an unmatched < This breaks the string freeze horrendously. I'm afraid every string for every language will have to be retranslated. Sorry. Just kidding. Really. Don't hate me because I'm beautiful. This commit brought to you by the follow quote: "Chewie, take the professor in the back and plug him into the hyperdrive." committer: Tailor Script diff -r 03b9ce930f0d -r 16485e87b7bb src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Tue Mar 16 20:48:21 2004 +0000 +++ b/src/protocols/oscar/oscar.c Wed Mar 17 02:25:03 2004 +0000 @@ -5754,8 +5754,10 @@ g_free(away_utf8); tmp2 = gaim_markup_strip_html(tmp1); g_free(tmp1); - tmp3 = gaim_str_sub_away_formatters(tmp2, gaim_account_get_username(gaim_connection_get_account(gc))); + tmp1 = gaim_strreplace(tmp2, "<", "<"); g_free(tmp2); + tmp3 = gaim_str_sub_away_formatters(tmp1, gaim_account_get_username(gaim_connection_get_account(gc))); + g_free(tmp1); tmp = ret; ret = g_strconcat(tmp, _("Away Message: "), tmp3, "\n", NULL); g_free(tmp); diff -r 03b9ce930f0d -r 16485e87b7bb src/util.h --- a/src/util.h Tue Mar 16 20:48:21 2004 +0000 +++ b/src/util.h Wed Mar 17 02:25:03 2004 +0000 @@ -454,6 +454,9 @@ * @param delimiter The substring you want replaced. * @param replacement The substring you want inserted in place * of the delimiting substring. + * + * @return A new string, after performing the substitution. + * free this with g_free(). */ gchar *gaim_strreplace(const char *string, const char *delimiter, const char *replacement); @@ -466,6 +469,9 @@ * @param delimiter The substring you want replaced. * @param replacement The substring you want inserted in place * of the delimiting substring. + * + * @return A new string, after performing the substitution. + * free this with g_free(). */ gchar *gaim_strcasereplace(const char *string, const char *delimiter, const char *replacement);