changeset 5678:4fe9951788cb

Fixing issue similiar to MoinMoinBugs/1.9.2XSSTemplateParameter
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Thu, 03 Jun 2010 16:49:30 +0400
parents de7d4e43d3aa
children e50b087c4572
files MoinMoin/action/SlideShow.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/SlideShow.py	Thu Jun 03 13:30:28 2010 +0200
+++ b/MoinMoin/action/SlideShow.py	Thu Jun 03 16:49:30 2010 +0400
@@ -161,7 +161,7 @@
             self.request.setContentLanguage(language)
             self.request.write(self.template % self)
         except Error, err:
-            self.request.theme.add_msg(unicode(err), "error")
+            self.request.theme.add_msg(wikiutil.escape(unicode(err)), "error")
             self.page.send_page()
 
     # Private ----------------------------------------------------------------