Mercurial > pidgin.yaz
changeset 5751:2951d2435196
[gaim-migrate @ 6176]
Fixed crashes on unescaped data in Trepia profiles.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 04 Jun 2003 18:29:20 +0000 |
parents | eb4f129361ca |
children | 90eea4997759 |
files | src/protocols/trepia/trepia.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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("<b>Profile:</b> %s\n", value); + char *escaped_val = g_markup_escape_text(value, -1); + + tmp = g_strdup_printf("<b>Profile:</b> %s\n", escaped_val); + + g_free(escaped_val); tmp2 = g_strconcat(text, tmp, NULL); g_free(tmp);