mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 16:01:57 +00:00
bugfix/#sonarcloud: Change this code to not perform redirects based on user-controlled data. - step2
This commit is contained in:
parent
bdf4aa609e
commit
7a9a44e4f3
@ -283,6 +283,6 @@ class DeleteEntitlementView(LoginRequiredMixin, View):
|
||||
elif ("/users/myuser/user_id/" in str(redirect_url_from_gui)):
|
||||
redirect_url = reverse('my-user-detail',kwargs={"user_id":kwargs['user_id']})
|
||||
else:
|
||||
redirect_url = redirect_url_from_gui
|
||||
redirect_url = reverse('users-index')
|
||||
|
||||
return HttpResponseRedirect(redirect_url)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user