Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 4fe0eac35e20eb2d09b83f78a19ab835 > files > 3

gwibber-3.0.0.1-2.fc13.src.rpm

diff -up gwibber-2.91.92/gwibber/gwui.py.x00 gwibber-2.91.92/gwibber/gwui.py
--- gwibber-2.91.92/gwibber/gwui.py.x00	2011-03-24 16:13:45.000000000 -0400
+++ gwibber-2.91.92/gwibber/gwui.py	2011-03-24 16:15:10.564112992 -0400
@@ -255,6 +255,10 @@ class WebUi(webkit.WebView):
     template = Template(template, lookup=TemplateLookup(directories=lookup_paths))
     content = template.render(theme=util.get_theme_colors(), util=util, resources=resources, _=_, **kwargs)
 
+    # Content occasionally ends up with nulls (\x00) which causes a traceback
+    # This works around it by replacing \x00 with a space whenever it is found.
+    content = content.replace('\x00', ' ')
+
     # Avoid navigation redraw crashes
     if isinstance(self, Navigation) and not self.get_property("visible"):
       return content