Skip to content

Commit

Permalink
Merge pull request #30 from septatrix/fix/query-parsing
Browse files Browse the repository at this point in the history
Fix extraction of sessionID query parameter
  • Loading branch information
Buxdehuda authored Feb 5, 2024
2 parents 50188a1 + 4186996 commit aecc449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion certbotstratoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit aecc449

Please sign in to comment.