From 0514d2b3b80755513a75c64ddd4f9e29cf1fd800 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Thu, 24 Nov 2016 12:19:35 +0530 Subject: [PATCH] source-dialog: escape string in markup Calendar name can potentially contain invalid markup texts. So it have to be escaped to be safe. https://bugzilla.gnome.org/show_bug.cgi?id=774986 --- src/gcal-source-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index ca5f187c..987f6dc8 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -1763,7 +1763,7 @@ remove_button_clicked (GtkWidget *button, } // Update notification label - str = g_strdup_printf (_("Calendar %s removed"), e_source_get_display_name (self->removed_source)); + str = g_markup_printf_escaped (_("Calendar %s removed"), e_source_get_display_name (self->removed_source)); gtk_label_set_markup (GTK_LABEL (self->notification_label), str); // Remove old notifications