1
0
mirror of https://github.com/django/django.git synced 2025-06-08 13:09:13 +00:00

Fixed ExceptionReporter._get_raw_insecure_uri

This commit is contained in:
GappleBee 2024-11-22 23:56:47 +00:00
parent af3a370704
commit f7c66b8bc6

View File

@ -335,11 +335,7 @@ class ExceptionReporter:
Return an absolute URI from variables available in this request. Skip
allowed hosts protection, so may return insecure URI.
"""
return "{scheme}://{host}{path}".format(
scheme=self.request.scheme,
host=self.request._get_raw_host(),
path=self.request.get_full_path(),
)
return self.request.get_raw_uri()
def get_traceback_data(self):
"""Return a dictionary containing traceback information."""