aboutsummaryrefslogtreecommitdiffstats
path: root/mako
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-16 13:13:03 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-16 13:13:03 -0500
commit96998dd9fbf060cb873176440b75c51238e1c4ba (patch)
treea6e3e821f60f284592fd82b2451526ae1f2045d3 /mako
parent0050ca812536b4dce06d3e4a811e451676c0e60a (diff)
downloadexternal_python_mako-96998dd9fbf060cb873176440b75c51238e1c4ba.tar.gz
external_python_mako-96998dd9fbf060cb873176440b75c51238e1c4ba.tar.bz2
external_python_mako-96998dd9fbf060cb873176440b75c51238e1c4ba.zip
- [bug] The exception message in the html_error_template
is now escaped with the HTML filter. [ticket:142]
Diffstat (limited to 'mako')
-rw-r--r--mako/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mako/exceptions.py b/mako/exceptions.py
index 45155aa..522227c 100644
--- a/mako/exceptions.py
+++ b/mako/exceptions.py
@@ -277,7 +277,7 @@ def html_error_template():
else:
lines = None
%>
-<h3>${tback.errorname}: ${tback.message}</h3>
+<h3>${tback.errorname}: ${tback.message|h}</h3>
% if lines:
<div class="sample">