diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-01-09 11:37:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-10 11:35:41 +0100 |
| commit | e2d9d66a22f9004c0349f6aa9f8762fa558bdee8 (patch) | |
| tree | 6066d3aab3769c16ff9a970b244d9154e5672189 /django/views/templates | |
| parent | 581ba5a9486ed73cb81031d85b3ce1b27a960109 (diff) | |
Fixed #23004 -- Added request.META filtering to SafeExceptionReporterFilter.
Co-authored-by: Ryan Castner <castner.rr@gmail.com>
Diffstat (limited to 'django/views/templates')
| -rw-r--r-- | django/views/templates/technical_500.html | 2 | ||||
| -rw-r--r-- | django/views/templates/technical_500.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html index b01b00c8e6..a63c7183e6 100644 --- a/django/views/templates/technical_500.html +++ b/django/views/templates/technical_500.html @@ -438,7 +438,7 @@ Exception Value: {{ exception_value|force_escape }} </tr> </thead> <tbody> - {% for var in request.META.items|dictsort:0 %} + {% for var in request_meta.items|dictsort:0 %} <tr> <td>{{ var.0 }}</td> <td class="code"><pre>{{ var.1|pprint }}</pre></td> diff --git a/django/views/templates/technical_500.txt b/django/views/templates/technical_500.txt index c9f70af797..f06a1a499e 100644 --- a/django/views/templates/technical_500.txt +++ b/django/views/templates/technical_500.txt @@ -50,7 +50,7 @@ FILES:{% for k, v in request_FILES_items %} COOKIES:{% for k, v in request_COOKIES_items %} {{ k }} = {{ v|stringformat:"r" }}{% empty %} No cookie data{% endfor %} -META:{% for k, v in request.META.items|dictsort:0 %} +META:{% for k, v in request_meta.items|dictsort:0 %} {{ k }} = {{ v|stringformat:"r" }}{% endfor %} {% else %}Request data not supplied {% endif %} |
