[iprogress] use xml_escape instead of buggy replace stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 07 Apr 2010 14:53:35 +0200
branchstable
changeset 5178 42285e33b01c
parent 5175 6efb7a7ae570
child 5179 f08943f22334
child 5208 1c154b055105
[iprogress] use xml_escape instead of buggy replace
web/views/iprogress.py
--- a/web/views/iprogress.py	Wed Apr 07 14:42:12 2010 +0200
+++ b/web/views/iprogress.py	Wed Apr 07 14:53:35 2010 +0200
@@ -264,4 +264,4 @@
                                           int(100.*budget/maxi), color))
         self.w(u'%s<br/>'
                u'<canvas class="progressbar" id="canvas%s" width="100" height="10"></canvas>'
-               % (short_title.replace(' ','&nbsp;'), cid))
+               % (xml_escape(short_title), cid))