From f7c66b8bc6691b5a6a3dd7fb5071a8923f5200b7 Mon Sep 17 00:00:00 2001 From: GappleBee Date: Fri, 22 Nov 2024 23:56:47 +0000 Subject: [PATCH] Fixed ExceptionReporter._get_raw_insecure_uri --- django/views/debug.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/django/views/debug.py b/django/views/debug.py index 10b4d22030..befef21845 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -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."""