[gnome-calendar/gnome-3-20] source-dialog: escape string in markup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-calendar/gnome-3-20] source-dialog: escape string in markup
- Date: Thu,  1 Dec 2016 01:20:10 +0000 (UTC)
commit 5628b035a45f88e88dfd83c8301147a0f7ad95a7
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu Nov 24 12:19:35 2016 +0530
    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 91f08c6..8f5d18c 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -1757,7 +1757,7 @@ remove_button_clicked (GtkWidget *button,
         }
 
       // Update notification label
-      str = g_strdup_printf (_("Calendar <b>%s</b> removed"), e_source_get_display_name 
(self->removed_source));
+      str = g_markup_printf_escaped (_("Calendar <b>%s</b> removed"), e_source_get_display_name 
(self->removed_source));
       gtk_label_set_markup (GTK_LABEL (self->notification_label), str);
 
       // Remove old notifications
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]