Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Changed set_language() redirect view to check POST data for 'next'. T…

…hanks, msaelices

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bb94a48f884e1f18c376c3fd518582a8b7ba0dba 1 parent bcfaa73
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/views/
4 django/views/
@@ -16,7 +16,9 @@ def set_language(request):
redirect to the page in the request (the 'next' parameter) without changing
any state.
- next = request.GET.get('next', None)
+ next = request.POST.get('next', None)
+ if not next:
+ next = request.GET.get('next', None)
if not next:
next = request.META.get('HTTP_REFERER', None)
if not next:
Please sign in to comment.
Something went wrong with that request. Please try again.