meld r1007 - trunk



Author: stevek
Date: Thu Jun 26 21:54:29 2008
New Revision: 1007
URL: http://svn.gnome.org/viewvc/meld?rev=1007&view=rev

Log:
Html not escaped in search. Bug 522865 Kai Willadsen

Modified:
   trunk/misc.py

Modified: trunk/misc.py
==============================================================================
--- trunk/misc.py	(original)
+++ trunk/misc.py	Thu Jun 26 21:54:29 2008
@@ -24,6 +24,7 @@
 import select
 import popen2
 import errno
+import gobject
 import gtk
 import shutil
 import re
@@ -40,11 +41,12 @@
     """Run a dialog with text 'text'.
        Extra buttons are passed as tuples of (button label, response id).
     """
+    escaped = gobject.markup_escape_text(text)
     d = gtk.MessageDialog(None,
         gtk.DIALOG_DESTROY_WITH_PARENT,
         messagetype,
         buttonstype,
-        '<span weight="bold" size="larger">%s</span>' % text)
+        '<span weight="bold" size="larger">%s</span>' % escaped)
     if parent:
         d.set_transient_for(parent.widget.get_toplevel())
     for b,rid in extrabuttons:



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