Skip to content

Commit

Permalink
Fix bug that garbled redirect query string #4042 #3899
Browse files Browse the repository at this point in the history
  • Loading branch information
joemull committed Jun 24, 2024
1 parent 66c520e commit ad1d073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/security/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def base_check(request, login_redirect=False):
params = urlencode({"next": f"{request.path}?{request_params}"})
return redirect('{0}?{1}'.format(reverse('core_login'), params))
elif isinstance(login_redirect, str):
params = urlencode({"next": redirect})
params = urlencode({"next": login_redirect})
return redirect('{0}?{1}'.format(reverse('core_login'), params))
else:
return False
Expand Down

0 comments on commit ad1d073

Please sign in to comment.