Skip to content

Commit c2cb222

Browse files
committed
Revert "Escape next_path URL in validate_referral_url"
This reverts commit e688b76.
1 parent 5a0cfb2 commit c2cb222

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

djangosaml2/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ def validate_referral_url(request, url):
110110

111111
if not url_has_allowed_host_and_scheme(url=url, allowed_hosts=saml_allowed_hosts):
112112
return get_fallback_login_redirect_url()
113-
114-
return urllib.parse.quote(url, safe="/")
113+
return url
115114

116115

117116
def saml2_from_httpredirect_request(url):

0 commit comments

Comments
 (0)