mirror of
https://github.com/django/django.git
synced 2025-09-28 04:54:53 +00:00
Changed set_language() redirect view to check POST data for 'next'. Thanks, msaelices
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bcfaa73514
commit
bb94a48f88
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ def set_language(request):
|
||||||
redirect to the page in the request (the 'next' parameter) without changing
|
redirect to the page in the request (the 'next' parameter) without changing
|
||||||
any state.
|
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:
|
if not next:
|
||||||
next = request.META.get('HTTP_REFERER', None)
|
next = request.META.get('HTTP_REFERER', None)
|
||||||
if not next:
|
if not next:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue