1
0
mirror of https://github.com/django/django.git synced 2025-07-06 10:49:17 +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 Return an absolute URI from variables available in this request. Skip
allowed hosts protection, so may return insecure URI. allowed hosts protection, so may return insecure URI.
""" """
return "{scheme}://{host}{path}".format( return self.request.get_raw_uri()
scheme=self.request.scheme,
host=self.request._get_raw_host(),
path=self.request.get_full_path(),
)
def get_traceback_data(self): def get_traceback_data(self):
"""Return a dictionary containing traceback information.""" """Return a dictionary containing traceback information."""