Merge pull request #1186 from FloArt/master

Fix redirect url
This commit is contained in:
Antoine Nguyen
2017-07-16 20:03:14 +02:00
committed by GitHub
+1 -1
View File
@@ -18,7 +18,7 @@ def find_nextlocation(request, user):
return reverse("core:user_index")
nextlocation = request.POST.get("next", request.GET.get("next"))
condition = (
nextlocation is not None and nextlocation != "" and
nextlocation is not None and nextlocation != "" and nextlocation != "None" and
is_safe_url(nextlocation, host=request.get_host())
)
if condition: