diff options
author | Jan Schär <jscissr@gmail.com> | 2021-09-07 22:50:29 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-10 06:44:39 +0200 |
commit | 06e59d97a3c6e8e600ff11dadf994fae467fc785 (patch) | |
tree | 8cf20b034be22fcceefb2bff8505f2e0ccc648b1 /django/views | |
parent | 0a28b42b1510b8093a90718bafd7627ed67fa13b (diff) | |
download | django-06e59d97a3c6e8e600ff11dadf994fae467fc785.tar.gz |
Fixed #33096 -- Fixed <form> nesting in technical 500 template.
This also prevents sending <form> tags in emails.
Diffstat (limited to 'django/views')
-rw-r--r-- | django/views/templates/technical_500.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html index 7683896c56..5ace2a136f 100644 --- a/django/views/templates/technical_500.html +++ b/django/views/templates/technical_500.html @@ -276,8 +276,8 @@ {% endfor %} </ul> </div> - <form action="https://dpaste.com/" name="pasteform" id="pasteform" method="post"> {% if not is_email %} + <form action="https://dpaste.com/" name="pasteform" id="pasteform" method="post"> <div id="pastebinTraceback" class="pastebin"> <input type="hidden" name="language" value="PythonConsole"> <input type="hidden" name="title" @@ -327,8 +327,8 @@ Exception Value: {{ exception_value|force_escape }} <input type="submit" value="Share this traceback on a public website"> </div> </form> -</div> {% endif %} +</div> {% endif %} <div id="requestinfo"> |