summaryrefslogtreecommitdiff
path: root/django/views
diff options
context:
space:
mode:
authorKeryn Knight <keryn@kerynknight.com>2022-01-26 15:09:08 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-01-28 07:07:12 +0100
commitc5c7a15b09368a58340d3a65ba9d1f1441e92dc8 (patch)
tree2d8cbe6e5bc01935b8132ad9b8152cd07527e398 /django/views
parent3a9b8b25d48c5768633e73edc5ddca20c3fd716c (diff)
downloaddjango-c5c7a15b09368a58340d3a65ba9d1f1441e92dc8.tar.gz
Fixed #33461 -- Escaped template errors in the technical 500 debug page.
Diffstat (limited to 'django/views')
-rw-r--r--django/views/templates/technical_500.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html
index 7801289b78..9d65346847 100644
--- a/django/views/templates/technical_500.html
+++ b/django/views/templates/technical_500.html
@@ -190,7 +190,7 @@
<div id="template">
<h2>Error during template rendering</h2>
<p>In template <code>{{ template_info.name }}</code>, error at line <strong>{{ template_info.line }}</strong></p>
- <h3>{{ template_info.message }}</h3>
+ <h3>{{ template_info.message|force_escape }}</h3>
<table class="source{% if template_info.top %} cut-top{% endif %}
{% if template_info.bottom != template_info.total %} cut-bottom{% endif %}">
{% for source_line in template_info.source_lines %}
@@ -316,7 +316,7 @@ Using engine {{ entry.backend.name }}:
{% endif %}{% endif %}{% if template_info %}
Template error:
In template {{ template_info.name }}, error at line {{ template_info.line }}
- {{ template_info.message }}
+ {{ template_info.message|force_escape }}
{% for source_line in template_info.source_lines %}{% if source_line.0 == template_info.line %} {{ source_line.0 }} : {{ template_info.before }} {{ template_info.during }} {{ template_info.after }}{% else %} {{ source_line.0 }} : {{ source_line.1 }}{% endif %}{% endfor %}{% endif %}
Traceback (most recent call last):{% for frame in frames %}