From f95d699d693d3781a15c90a04bc63ad62897eb48 Mon Sep 17 00:00:00 2001 From: kajzer Date: Sat, 27 Aug 2016 21:25:10 +0200 Subject: Fix: escape text #106 --- src/themes/coco/coco-theme.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/themes/coco/coco-theme.c') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index a3c54bd..ca742b4 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -495,16 +495,21 @@ void set_notification_text(GtkWindow *nw, const char *summary, const char *body) { char *str; + char* quoted; WindowData *windata = g_object_get_data(G_OBJECT(nw), "windata"); g_assert(windata != NULL); + quoted = g_markup_escape_text(summary, -1); str = g_strdup_printf( - "%s", summary); + "%s", quoted); + g_free(quoted); gtk_label_set_markup(GTK_LABEL(windata->summary_label), str); g_free(str); + quoted = g_markup_escape_text(body, -1); str = g_strdup_printf( - "%s", body); + "%s", quoted); + g_free(quoted); gtk_label_set_markup (GTK_LABEL (windata->body_label), str); g_free(str); -- cgit v1.2.1