web/views/idownloadable.py
branchstable
changeset 3789 fb22b55f80f8
parent 3065 694c03f7d72f
child 3846 1a7d10864628
--- a/web/views/idownloadable.py	Sun Nov 01 21:40:03 2009 +0100
+++ b/web/views/idownloadable.py	Mon Nov 02 16:10:03 2009 +0100
@@ -113,7 +113,7 @@
             except TransformError:
                 pass
             except Exception, ex:
-                msg = self.req._("can't display data, unexpected error: %s") % ex
+                msg = self.req._("can't display data, unexpected error: %s") % xml_escape(str(ex))
                 self.w('<div class="error">%s</div>' % msg)
         self.w(u'</div>')