diff options
author | luxagraf <sng@luxagraf.net> | 2018-08-28 08:33:27 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-08-28 08:33:27 -0600 |
commit | 24b86512d027ee436eab6c125928b7798a6ad1bc (patch) | |
tree | 0d26a77540797fac44fbedd2745f56345d7b6f7c /app/lib | |
parent | 4ab532c0d6257c51e38d093fa80eb8debc6e535f (diff) | |
parent | 06cf302fa70a502f5af13738a38ddb5d32b6e79b (diff) |
Merge branch 'master' of ssh://lux2:/home/lxf/git/luxagraf
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/django_comments/views/utils.py | 2 |
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: |