summaryrefslogtreecommitdiff
path: root/django/views/templates
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2021-04-29 14:35:11 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-04-30 08:05:42 +0200
commit8bcb00858e0ddec79cc96669c238d29c30d7effb (patch)
treecba5b4df1cd188543adc523ccedfead1ac26075d /django/views/templates
parentca34db46504fca1221e27f6ab13734dfdfde6e1c (diff)
Fixed #32698 -- Moved HttpRequest.get_raw_uri() to ExceptionReporter._get_raw_insecure_uri().
Diffstat (limited to 'django/views/templates')
-rw-r--r--django/views/templates/technical_500.html4
-rw-r--r--django/views/templates/technical_500.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html
index b5ea1a78a7..7683896c56 100644
--- a/django/views/templates/technical_500.html
+++ b/django/views/templates/technical_500.html
@@ -108,7 +108,7 @@
</tr>
<tr>
<th>Request URL:</th>
- <td>{{ request.get_raw_uri }}</td>
+ <td>{{ request_insecure_uri }}</td>
</tr>
{% endif %}
<tr>
@@ -289,7 +289,7 @@ Environment:
{% if request %}
Request Method: {{ request.META.REQUEST_METHOD }}
-Request URL: {{ request.get_raw_uri }}
+Request URL: {{ request_insecure_uri }}
{% endif %}
Django Version: {{ django_version_info }}
Python Version: {{ sys_version_info }}
diff --git a/django/views/templates/technical_500.txt b/django/views/templates/technical_500.txt
index 551413aab7..5c86a3139f 100644
--- a/django/views/templates/technical_500.txt
+++ b/django/views/templates/technical_500.txt
@@ -2,7 +2,7 @@
{% firstof exception_value 'No exception message supplied' %}
{% if request %}
Request Method: {{ request.META.REQUEST_METHOD }}
-Request URL: {{ request.get_raw_uri }}{% endif %}
+Request URL: {{ request_insecure_uri }}{% endif %}
Django Version: {{ django_version_info }}
Python Executable: {{ sys_executable }}
Python Version: {{ sys_version_info }}