backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 10 Aug 2010 18:28:28 +0200
changeset 6092 ab4958e2654b
parent 6089 b0975c6f2e44 (current diff)
parent 6091 560df423149a (diff)
child 6094 c40652b93321
backport stable
web/views/primary.py
--- a/web/views/basetemplates.py	Tue Aug 10 16:05:00 2010 +0200
+++ b/web/views/basetemplates.py	Tue Aug 10 18:28:28 2010 +0200
@@ -328,12 +328,9 @@
 
     def call(self, view, **kwargs):
         self.main_header(view)
-        self.w(u'''
-  <div id="stateheader">''')
+        self.w(u'<div id="stateheader">')
         self.state_header()
-        self.w(u'''
-  </div>
-  ''')
+        self.w(u'</div>')
 
     def main_header(self, view):
         """build the top menu with authentification info and the rql box"""
@@ -478,7 +475,7 @@
             self.login_form(id) # Cookie authentication
         self.w(u'</div>')
         if self._cw.https and config.anonymous_user()[0]:
-            path = config['base-url'] + self._cw.relative_path()
+            path = xml_escape(config['base-url'] + self._cw.relative_path())
             self.w(u'<div class="loginMessage"><a href="%s">%s</a></div>\n'
                    % (path, self._cw._('No account? Try public access at %s') % path))
         self.w(u'</div>\n')
--- a/web/views/primary.py	Tue Aug 10 16:05:00 2010 +0200
+++ b/web/views/primary.py	Tue Aug 10 18:28:28 2010 +0200
@@ -287,6 +287,7 @@
             return label
         return u''
 
+
 class RelatedView(EntityView):
     __regid__ = 'autolimited'