aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-10-26 20:58:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-26 22:56:28 +0800
commitd5a8dbc1f792a965b4a4ec42ffab464465340293 (patch)
treefc026e8ad5c8dc74b67fb39766aeaba4cac2fe6e /libempathy-gtk
parent25db009b027a9c6ef1497924787a7eee3a0fbc69 (diff)
downloadgsoc2013-empathy-d5a8dbc1f792a965b4a4ec42ffab464465340293.tar
gsoc2013-empathy-d5a8dbc1f792a965b4a4ec42ffab464465340293.tar.gz
gsoc2013-empathy-d5a8dbc1f792a965b4a4ec42ffab464465340293.tar.bz2
gsoc2013-empathy-d5a8dbc1f792a965b4a4ec42ffab464465340293.tar.lz
gsoc2013-empathy-d5a8dbc1f792a965b4a4ec42ffab464465340293.tar.xz
gsoc2013-empathy-d5a8dbc1f792a965b4a4ec42ffab464465340293.tar.zst
gsoc2013-empathy-d5a8dbc1f792a965b4a4ec42ffab464465340293.zip
theme_adium_append_event: escape text
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 35c216d68..23e985a96 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 */