changeset 23619:d70aad03b491

Properly escape text when sending MSN pages.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 23 Jul 2008 05:36:12 +0000
parents c3506ae277f6
children ec227bab07b6
files libpurple/protocols/msn/page.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/page.c	Sat Jul 19 03:10:10 2008 +0000
+++ b/libpurple/protocols/msn/page.c	Wed Jul 23 05:36:12 2008 +0000
@@ -53,9 +53,9 @@
 
 	g_return_val_if_fail(page != NULL, NULL);
 
-	str =
-		g_strdup_printf("<TEXT xml:space=\"preserve\" enc=\"utf-8\">%s</TEXT>",
-						msn_page_get_body(page));
+	str = g_markup_printf_escaped(
+			"<TEXT xml:space=\"preserve\" enc=\"utf-8\">%s</TEXT>",
+			msn_page_get_body(page));
 
 	if (ret_size != NULL)
 		*ret_size = strlen(str);