summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-08-28 09:32:51 -0500
committerluxagraf <sng@luxagraf.net>2018-08-28 09:32:51 -0500
commit06cf302fa70a502f5af13738a38ddb5d32b6e79b (patch)
tree42bb567e446b510db43e1cddf2105a7ec2f6d3fc
parentcd52af5c8d93df844db63ef896125a0df34c08c4 (diff)
updated comments to work with latest django
-rw-r--r--app/lib/django_comments/views/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/django_comments/views/utils.py b/app/lib/django_comments/views/utils.py
index 557e673..a5f5c11 100644
--- a/app/lib/django_comments/views/utils.py
+++ b/app/lib/django_comments/views/utils.py
@@ -28,7 +28,7 @@ def next_redirect(request, fallback, **get_kwargs):
Returns an ``HttpResponseRedirect``.
"""
next = request.POST.get('next')
- if not is_safe_url(url=next, host=request.get_host()):
+ if not is_safe_url(url=next, allowed_hosts={request.get_host()}):
next = resolve_url(fallback)
if get_kwargs: