[ibreadcrumbs] missing xml_escape on latest path part (usually view's title). Closes #2037506 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Oct 2011 09:23:43 +0200
branchstable
changeset 7976 48e1f7992507
parent 7975 6ea7378b2c14
child 7977 e2d3ff3e7660
[ibreadcrumbs] missing xml_escape on latest path part (usually view's title). Closes #2037506
web/views/ibreadcrumbs.py
--- a/web/views/ibreadcrumbs.py	Fri Oct 21 09:23:43 2011 +0200
+++ b/web/views/ibreadcrumbs.py	Fri Oct 21 09:23:43 2011 +0200
@@ -159,7 +159,7 @@
                 xml_escape(url), xml_escape(uilib.cut(title, textsize))))
         else:
             textsize = self._cw.property_value('navigation.short-line-size')
-            w(uilib.cut(unicode(part), textsize))
+            w(xml_escape(uilib.cut(unicode(part), textsize)))
 
 
 class BreadCrumbETypeVComponent(BreadCrumbEntityVComponent):