We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1e4caf commit 162abf6Copy full SHA for 162abf6
djangosaml2/views.py
@@ -359,7 +359,7 @@ def post(self,
359
custom_redirect_url = self.custom_redirect(user, relay_state, session_info)
360
if custom_redirect_url:
361
return HttpResponseRedirect(custom_redirect_url)
362
- if not is_safe_url_compat(url=relay_state, allowed_hosts={self.request.get_host()}):
+ if not is_safe_url(url=relay_state, allowed_hosts={self.request.get_host()}):
363
relay_state = settings.LOGIN_REDIRECT_URL
364
logger.debug('Redirecting to the RelayState: %s', relay_state)
365
return HttpResponseRedirect(relay_state)
0 commit comments