[empathy] theme_adium_append_event: escape text



commit d5a8dbc1f792a965b4a4ec42ffab464465340293
Author: Xavier Claessens <xclaesse gmail com>
Date:   Mon Oct 26 12:58:11 2009 +0000

    theme_adium_append_event: escape text

 libempathy-gtk/empathy-theme-adium.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 35c216d..23e985a 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -627,11 +627,15 @@ theme_adium_append_event (EmpathyChatView *view,
 	EmpathyThemeAdiumPriv *priv = GET_PRIV (theme);
 
 	if (priv->data->status_html) {
+		gchar *str_escaped;
+
+		str_escaped = g_markup_escape_text (str, -1);
 		theme_adium_append_html (theme, "appendMessage",
 					 priv->data->status_html,
 					 priv->data->status_len,
-					 str, NULL, NULL, NULL, NULL, "event",
-					 empathy_time_get_current ());
+					 str_escaped, NULL, NULL, NULL, NULL,
+					 "event", empathy_time_get_current ());
+		g_free (str_escaped);
 	}
 
 	/* There is no last contact */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]