web/views/basetemplates.py
branch3.0
changeset 432 8a7f619fce96
parent 163 451a3e35dbcb
child 580 b453a6a1c3d1
child 592 aae01d81c713
child 852 105893288777
--- a/web/views/basetemplates.py	Thu Jan 15 13:27:33 2009 +0100
+++ b/web/views/basetemplates.py	Thu Jan 15 14:39:19 2009 +0100
@@ -194,7 +194,7 @@
         w(u'<div id="pageContent">\n')
         vtitle = self.req.form.get('vtitle')
         if vtitle:
-            w(u'<h1 class="vtitle">%s</h1>\n' % vtitle)
+            w(u'<h1 class="vtitle">%s</h1>\n' % html_escape(vtitle))
             
     def template_footer(self, view=None):
         self.w(u'</div>\n') # close id=contentmain
@@ -288,7 +288,7 @@
         w(u'<div id="pageContent">\n')
         vtitle = self.req.form.get('vtitle')
         if vtitle:
-            w(u'<h1 class="vtitle">%s</h1>' % (vtitle))
+            w(u'<h1 class="vtitle">%s</h1>' % html_escape(vtitle))
             
     def topleft_header(self):
         self.w(u'<table id="header"><tr>\n')