mirror of
https://github.com/django/django.git
synced 2025-07-06 18:59:13 +00:00
Fixed ExceptionReporter._get_raw_insecure_uri
This commit is contained in:
parent
af3a370704
commit
f7c66b8bc6
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user