[pitivi] sourcelist: Escape names for markup. Fixes #583592
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] sourcelist: Escape names for markup. Fixes #583592
- Date: Sat, 23 May 2009 04:32:09 -0400 (EDT)
commit 1dc4d082025932d7f9698719a1c50be06808541c
Author: Edward Hervey <bilboed bilboed com>
Date: Sat May 23 10:31:02 2009 +0200
sourcelist: Escape names for markup. Fixes #583592
---
pitivi/ui/sourcelist.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 944b3e9..cbb2202 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -27,6 +27,7 @@ import os
import time
from urllib import unquote
+from xml.sax.saxutils import escape
from gettext import gettext as _
from gettext import ngettext
@@ -121,7 +122,7 @@ def beautify_factory(factory):
streams = factory.getOutputStreams()
streams.sort(key=stream_sort_key)
- return ("<b>" + unquote(factory.displayname) + "</b>\n" +
+ return ("<b>" + escape(unquote(factory.displayname)) + "</b>\n" +
"\n".join((beautify_stream(stream) for stream in streams)))
class SourceList(gtk.VBox, Loggable):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]