pidgin: 9335e655: Properly escape text when sending MSN pa...
qulogic at pidgin.im
qulogic at pidgin.im
Wed Jul 23 01:50:44 EDT 2008
-----------------------------------------------------------------
Revision: 9335e6559861d8cef4214b09234d1f588ff07f74
Ancestor: a0b2c783a2e0d0d5cd83d13ee1ce1d078b174ba3
Author: qulogic at pidgin.im
Date: 2008-07-23T05:36:12
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9335e6559861d8cef4214b09234d1f588ff07f74
Modified files:
libpurple/protocols/msn/page.c
ChangeLog:
Properly escape text when sending MSN pages.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/page.c 6adc9b1d22cd6d87f024b4188eb5c62410c5d162
+++ libpurple/protocols/msn/page.c 87b3a90e5c7da3b501ec94a98e4de356a4772751
@@ -53,9 +53,9 @@ msn_page_gen_payload(const MsnPage *page
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);
More information about the Commits
mailing list