Skip to content

Commit

Permalink
Update auth-mfa to support URI encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ikus060 committed Jan 5, 2024
1 parent f6d36d2 commit ab3feae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rdiffweb/tools/auth_mfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def redirect_to_original_url(self):
def _set_redirect_url(self):
# Keep reference to the current URL
request = cherrypy.serving.request
original_url = urllib.parse.quote(request.path_info, encoding=request.uri_encoding)
uri_encoding = getattr(request, 'uri_encoding', 'utf-8')
original_url = urllib.parse.quote(request.path_info, encoding=uri_encoding)
qs = request.query_string
new_url = cherrypy.url(original_url, qs=qs, base='')
if hasattr(cherrypy.serving, 'session'):
Expand Down

0 comments on commit ab3feae

Please sign in to comment.