[california] Escape markup in Agenda view: Bug #741612



commit d2f5980db363bb59fb5c248e15cb62a26740535b
Author: Jim Nelson <jim yorba org>
Date:   Mon Dec 22 14:48:00 2014 -0800

    Escape markup in Agenda view: Bug #741612

 src/view/agenda/agenda-event-row.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/view/agenda/agenda-event-row.vala b/src/view/agenda/agenda-event-row.vala
index 2558dae..af693b0 100644
--- a/src/view/agenda/agenda-event-row.vala
+++ b/src/view/agenda/agenda-event-row.vala
@@ -120,10 +120,11 @@ private class EventRow : Gtk.Box, Toolkit.MutableWidget {
         if (!String.is_empty(event.location)) {
             // hex value is an endash
             summary_label.label = "<span color=\"%s\">%s</span> &#x2013; %s".printf(
-                event.calendar_source.color, event.summary, event.location);
+                event.calendar_source.color, GLib.Markup.escape_text(event.summary),
+                GLib.Markup.escape_text(event.location));
         } else {
             summary_label.label = "<span color=\"%s\">%s</span>".printf(
-                event.calendar_source.color, event.summary);
+                event.calendar_source.color, GLib.Markup.escape_text(event.summary));
         }
         
         // only show guests icon if attendees include someone not an organizer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]