aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 16:31:55 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 16:32:27 +0800
commit07aabe75df7e32355c5273ed9f3a831eaf01b340 (patch)
treeb50e5ffdb4a399d50c32cce7cac66947fe4fbb9d
parente4e68f73b30c881ea136e30c5c3bc9f1aab7f1c5 (diff)
downloadgsoc2013-empathy-07aabe75df7e32355c5273ed9f3a831eaf01b340.tar
gsoc2013-empathy-07aabe75df7e32355c5273ed9f3a831eaf01b340.tar.gz
gsoc2013-empathy-07aabe75df7e32355c5273ed9f3a831eaf01b340.tar.bz2
gsoc2013-empathy-07aabe75df7e32355c5273ed9f3a831eaf01b340.tar.lz
gsoc2013-empathy-07aabe75df7e32355c5273ed9f3a831eaf01b340.tar.xz
gsoc2013-empathy-07aabe75df7e32355c5273ed9f3a831eaf01b340.tar.zst
gsoc2013-empathy-07aabe75df7e32355c5273ed9f3a831eaf01b340.zip
theme-adium: escape the name in actions as well
-rw-r--r--libempathy-gtk/empathy-theme-adium.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 820cd587e..8ca83a9db 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -816,6 +816,8 @@ theme_adium_append_message (EmpathyChatView *view,
contact_id = empathy_contact_get_id (sender);
action = (empathy_message_get_tptype (msg) == TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION);
+ name_escaped = g_markup_escape_text (name, -1);
+
/* If this is a /me probably */
if (action) {
gchar *str;
@@ -823,7 +825,7 @@ theme_adium_append_message (EmpathyChatView *view,
if (priv->data->version >= 4 || !priv->data->custom_template) {
str = g_strdup_printf ("<span class='actionMessageUserName'>%s</span>"
"<span class='actionMessageBody'>%s</span>",
- name, body_escaped);
+ name_escaped, body_escaped);
} else {
str = g_strdup_printf ("*%s*", body_escaped);
}