# HG changeset patch # User Sylvain Thénault # Date 1267187446 -3600 # Node ID 77bec4c4775ae3fc3947106e87dcb63fdc2ff8d5 # Parent 9c13d5db03d9865192f4b2e86bea571e9f0572f6 ensure we don't break xhtml diff -r 9c13d5db03d9 -r 77bec4c4775a 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'%s%s %s' - % (element, stats[element], + % (element, xml_escame(unicode(stats[element])), element.endswith('percent') and '%' or '' )) w(u'') if req.cnx._cnxtype == 'inmemory':