diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-26 22:40:37 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-26 22:40:37 +0800 |
commit | 5869623467e5c7746a4ad857f6ff0a69447816e7 (patch) | |
tree | cb8a4cecf6b5a96c70aaca099fbe44fa1f8b539b | |
parent | 8ee73a8dd92a52c9a214fc6a62702638f1b0b84f (diff) | |
download | gsoc2013-empathy-5869623467e5c7746a4ad857f6ff0a69447816e7.tar gsoc2013-empathy-5869623467e5c7746a4ad857f6ff0a69447816e7.tar.gz gsoc2013-empathy-5869623467e5c7746a4ad857f6ff0a69447816e7.tar.bz2 gsoc2013-empathy-5869623467e5c7746a4ad857f6ff0a69447816e7.tar.lz gsoc2013-empathy-5869623467e5c7746a4ad857f6ff0a69447816e7.tar.xz gsoc2013-empathy-5869623467e5c7746a4ad857f6ff0a69447816e7.tar.zst gsoc2013-empathy-5869623467e5c7746a4ad857f6ff0a69447816e7.zip |
theme_adium_parse_body: escape text between links
-rw-r--r-- | libempathy-gtk/empathy-theme-adium.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index d420fb7d0..6fa3cf7c9 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -324,7 +324,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 */ @@ -342,7 +345,10 @@ theme_adium_parse_body (EmpathyThemeAdium *theme, if (e < 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); |