Skip to content

Commit 162abf6

Browse files
committed
Fix is_safe_url rename
I had missed this in the prior merge conflict resolution.
1 parent f1e4caf commit 162abf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def post(self,
359359
custom_redirect_url = self.custom_redirect(user, relay_state, session_info)
360360
if custom_redirect_url:
361361
return HttpResponseRedirect(custom_redirect_url)
362-
if not is_safe_url_compat(url=relay_state, allowed_hosts={self.request.get_host()}):
362+
if not is_safe_url(url=relay_state, allowed_hosts={self.request.get_host()}):
363363
relay_state = settings.LOGIN_REDIRECT_URL
364364
logger.debug('Redirecting to the RelayState: %s', relay_state)
365365
return HttpResponseRedirect(relay_state)

0 commit comments

Comments
 (0)