From 4186996d38c97b5b97525b4ed7b84948d0079bee Mon Sep 17 00:00:00 2001 From: Septatrix <24257556+Septatrix@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:47:47 +0100 Subject: [PATCH] Fix extraction of sessionID query parameter --- certbotstratoapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/certbotstratoapi.py b/certbotstratoapi.py index cbf9e22..c3ac6b7 100644 --- a/certbotstratoapi.py +++ b/certbotstratoapi.py @@ -129,7 +129,8 @@ def login( totp_secret, totp_devicename) # Check successful login - query_parameters = urllib.parse.parse_qs(request.url) + parsed_url = urllib.parse.urlparse(request.url) + query_parameters = urllib.parse.parse_qs(parsed_url.query) if 'sessionID' not in query_parameters: return False self.session_id = query_parameters['sessionID'][0]