aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme-adium.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-26 22:40:37 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-26 22:56:37 +0800
commitcac9e049ba6a99b80aa1247cb33e1853b7bd7010 (patch)
tree2acaab51df3416200b06963d53a7d668f756d9c2 /libempathy-gtk/empathy-theme-adium.c
parentb0bab86aebbb9cdf0935c9cb78244f6674c3a2da (diff)
downloadgsoc2013-empathy-cac9e049ba6a99b80aa1247cb33e1853b7bd7010.tar
gsoc2013-empathy-cac9e049ba6a99b80aa1247cb33e1853b7bd7010.tar.gz
gsoc2013-empathy-cac9e049ba6a99b80aa1247cb33e1853b7bd7010.tar.bz2
gsoc2013-empathy-cac9e049ba6a99b80aa1247cb33e1853b7bd7010.tar.lz
gsoc2013-empathy-cac9e049ba6a99b80aa1247cb33e1853b7bd7010.tar.xz
gsoc2013-empathy-cac9e049ba6a99b80aa1247cb33e1853b7bd7010.tar.zst
gsoc2013-empathy-cac9e049ba6a99b80aa1247cb33e1853b7bd7010.zip
theme_adium_parse_body: escape text between links
Diffstat (limited to 'libempathy-gtk/empathy-theme-adium.c')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 1fc828fce..fcf95ca02 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -226,7 +226,10 @@ theme_adium_parse_body (EmpathyThemeAdium *theme,
if (s > last) {
/* Append the text between last link (or the
* start of the message) and this link */
- g_string_append_len (string, text + last, s - last);
+ gchar *str;
+ str = g_markup_escape_text (text + last, s - last);
+ g_string_append (string, str);
+ g_free (str);
}
/* Append the link inside <a href=""></a> tag */
@@ -244,7 +247,10 @@ theme_adium_parse_body (EmpathyThemeAdium *theme,
if (e < (gint) strlen (text)) {
/* Append the text after the last link */
- g_string_append_len (string, text + e, strlen (text) - e);
+ gchar *str;
+ str = g_markup_escape_text (text + e, strlen (text) - e);
+ g_string_append (string, str);
+ g_free (str);
}
g_free (ret);