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
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
0248188c25
commit
0514d2b3b8
@@ -1763,7 +1763,7 @@ remove_button_clicked (GtkWidget *button,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update notification label
|
// 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);
|
gtk_label_set_markup (GTK_LABEL (self->notification_label), str);
|
||||||
|
|
||||||
// Remove old notifications
|
// Remove old notifications
|
||||||
|
|||||||
Reference in New Issue
Block a user