From 6daec9f5e412e1d66e830ff085cc2bbaf3396d48 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 7 May 2011 17:30:51 +0200 Subject: [PATCH] In icon_list_append_icon(), escape sigshort so the brackets around the email address don't cause markup errors --- src/mimeview.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/mimeview.c b/src/mimeview.c index 1533bd6..9fc3696 100644 --- a/src/mimeview.c +++ b/src/mimeview.c @@ -2404,6 +2404,14 @@ static void icon_list_append_icon (MimeView *mimeview, MimeInfo *mimeinfo) g_free(tmp); } if (sigshort && *sigshort) { +#if GTK_CHECK_VERSION(2,12,0) + gchar *tmp; + tmp = g_markup_escape_text(sigshort, -1); + if (tmp != NULL) { + g_free(sigshort); + sigshort = tmp; + } +#endif tiptmp = g_strjoin("\n", tip, sigshort, NULL); g_free(tip); tip = tiptmp; -- 1.7.4.5