From 06cf302fa70a502f5af13738a38ddb5d32b6e79b Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 28 Aug 2018 09:32:51 -0500 Subject: updated comments to work with latest django --- app/lib/django_comments/views/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/lib') 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: -- cgit v1.2.3-70-g09d2