diff MoinMoin/theme/__init__.py @ 1766:2e640592bfd1

fix some unescaped uses of pagename (ported from 1.5-803/805/806)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 30 Jan 2007 23:01:44 +0100
parents 885c97f7ba37
children c08e0c98a0cd
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Tue Jan 30 22:47:57 2007 +0100
+++ b/MoinMoin/theme/__init__.py	Tue Jan 30 23:01:44 2007 +0100
@@ -697,7 +697,7 @@
                 pagename = page.page_name
                 if self.request.cfg.show_interwiki:
                     pagename = "%s: %s" % (self.request.cfg.interwikiname, pagename)
-                info = "%s  (%s)" % (pagename, info)
+                info = "%s  (%s)" % (wikiutil.escape(pagename), info)
                 html = '<p id="pageinfo" class="info"%(lang)s>%(info)s</p>\n' % {
                     'lang': self.ui_lang_attr(),
                     'info': info