[empathy/gnome-3-2] theme-adium: escape the name in actions as well
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-3-2] theme-adium: escape the name in actions as well
- Date: Mon, 24 Oct 2011 08:32:36 +0000 (UTC)
commit 07aabe75df7e32355c5273ed9f3a831eaf01b340
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Oct 24 10:31:55 2011 +0200
theme-adium: escape the name in actions as well
libempathy-gtk/empathy-theme-adium.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 820cd58..8ca83a9 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]