web/views/basetemplates.py
branch3.5
changeset 3184 613064b49331
parent 3080 32c2b6a34ab2
parent 3166 2413e5291e8d
child 3185 bd0126d17e83
child 3242 390acf7594ed
--- a/web/views/basetemplates.py	Fri Sep 11 12:42:37 2009 +0200
+++ b/web/views/basetemplates.py	Fri Sep 11 15:55:15 2009 +0200
@@ -480,8 +480,12 @@
         self.req.add_css('cubicweb.login.css')
         self.w(u'<div id="%s" class="%s">' % (id, klass))
         if title:
-            self.w(u'<div id="loginTitle">%s</div>'
-                   % (self.req.property_value('ui.site-title') or u'&#160;'))
+            stitle = self.req.property_value('ui.site-title')
+            if stitle:
+                stitle = xml_escape(stitle)
+            else:
+                stitle = u'&#160;'
+            self.w(u'<div id="loginTitle">%s</div>' % stitle)
         self.w(u'<div id="loginContent">\n')
 
         if message: