web/views/basetemplates.py
changeset 3185 bd0126d17e83
parent 3085 b415bca9a9ed
parent 3184 613064b49331
child 3293 69c0ba095536
--- a/web/views/basetemplates.py	Thu Sep 10 08:13:22 2009 +0200
+++ b/web/views/basetemplates.py	Fri Sep 11 15:57:34 2009 +0200
@@ -479,8 +479,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: