Skip to content

Commit

Permalink
fix django 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fangli authored Sep 3, 2018
1 parent 370af21 commit 90a2409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_saml2_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def signin(r):
next_url = r.GET.get('next', settings.SAML2_AUTH.get('DEFAULT_NEXT_URL', get_reverse('admin:index')))

# Only permit signin requests where the next_url is a safe URL
if not is_safe_url(next_url):
if not is_safe_url(next_url, None):
return HttpResponseRedirect(get_reverse([denied, 'denied', 'django_saml2_auth:denied']))

r.session['login_next_url'] = next_url
Expand Down

0 comments on commit 90a2409

Please sign in to comment.