ensure we don't break xhtml stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Feb 2010 13:30:46 +0100
branchstable
changeset 4723 77bec4c4775a
parent 4722 9c13d5db03d9
child 4724 fe1f3c560381
ensure we don't break xhtml
web/views/debug.py
--- a/web/views/debug.py	Fri Feb 26 13:30:24 2010 +0100
+++ b/web/views/debug.py	Fri Feb 26 13:30:46 2010 +0100
@@ -66,7 +66,7 @@
         stats = repo.stats()
         for element in sorted(stats):
             w(u'<tr><th align="left">%s</th><td>%s %s</td></tr>'
-                   % (element, stats[element],
+                   % (element, xml_escame(unicode(stats[element])),
                       element.endswith('percent') and '%' or '' ))
         w(u'</table>')
         if req.cnx._cnxtype == 'inmemory':