Skip to content

Commit

Permalink
fix: replace is_safe_url with url_has_allowed_host_and_scheme due…
Browse files Browse the repository at this point in the history
… to django 4.2
  • Loading branch information
joshyu committed Mar 10, 2024
1 parent 41ecb14 commit 94d10b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_moderation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _get_success_redirect(self):
"""
return_to_url = self.request.GET.get("return_to_url")
if return_to_url:
url_is_safe = is_safe_url(
url_is_safe = url_has_allowed_host_and_scheme(
url=return_to_url,
allowed_hosts=self.request.get_host(),
require_https=self.request.is_secure(),
Expand Down

0 comments on commit 94d10b3

Please sign in to comment.