# HG changeset patch # User Christian Hammond # Date 1054751360 0 # Node ID 2951d2435196494bd0e9e144cbc92520cc2acd20 # Parent eb4f129361ca487316b4c3f7a08dcee5ce205f9c [gaim-migrate @ 6176] Fixed crashes on unescaped data in Trepia profiles. committer: Tailor Script diff -r eb4f129361ca -r 2951d2435196 src/protocols/trepia/trepia.c --- a/src/protocols/trepia/trepia.c Wed Jun 04 16:57:57 2003 +0000 +++ b/src/protocols/trepia/trepia.c Wed Jun 04 18:29:20 2003 +0000 @@ -187,7 +187,7 @@ trepia_profile_get_profile(profile)); if ((value = trepia_profile_get_profile(profile)) != NULL) - text = g_strdup(value); + text = g_markup_escape_text(value, -1); return text; } @@ -264,7 +264,11 @@ } if ((value = trepia_profile_get_profile(profile)) != NULL) { - tmp = g_strdup_printf("Profile: %s\n", value); + char *escaped_val = g_markup_escape_text(value, -1); + + tmp = g_strdup_printf("Profile: %s\n", escaped_val); + + g_free(escaped_val); tmp2 = g_strconcat(text, tmp, NULL); g_free(tmp);