Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <silbe@activitycentral.com>2011-06-25 10:12:55 (GMT)
committer Anish Mangal <anish@activitycentral.com>2012-02-01 12:33:29 (GMT)
commitb756d181d97c603aead14791e62fd2118985b736 (patch)
tree6898a8dcb3d07d2fd576a9708493495d66061a50
parent324d69f8e0e0d2e701d7a5410c9964995a89713b (diff)
Dextrose: Escape all text passed to Palette.primary_text and .secondary_text
sugar.graphics.palette.Palette passes primary_text and secondary_text through to GTK without escaping it, so we need to make sure it doesn't contain anything special in user data (activity title, bundle_id, nick name, etc.) or translations. Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
-rw-r--r--src/jarabe/view/palettes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/view/palettes.py b/src/jarabe/view/palettes.py
index 02648b7..7a17f32 100644
--- a/src/jarabe/view/palettes.py
+++ b/src/jarabe/view/palettes.py
@@ -303,7 +303,7 @@ class JournalXSPalette(Palette):
def __init__(self, xs_hostname):
Palette.__init__(self, _('School Server'))
- self.props.secondary_text = xs_hostname
+ self.props.secondary_text = glib.markup_escape_text(xs_hostname)
vbox = gtk.VBox()
self.set_content(vbox)