﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32345	"i18n.set_language unquotes next_url and produces wrong url for url params containing ""&"" character"	Sebastian Kapunkt	nobody	"When changing the language and the current URL parameter include a parameter value with an encoded  ""&"" like 

{{{
?paramter=some%20%26%20thing
}}}

the redirect response from `set_langauge` is 

{{{
?paramter=some%20&%20thing
}}}
where I would still expect the same URL from as in the beginning.

I've written a Django test that shows this bug:
{{{
def test_set_language_url_params():
    from django.test import RequestFactory
    from django.views.i18n import set_language

    rf = RequestFactory()
    request = rf.post("""", next="""")
    request.META['HTTP_REFERER'] = '/someurl/?paramter=some%20%26%20thing'

    response = set_language(request)
    assert response.url == '/someurl/?paramter=some%20%26%20thing'
}}}"	Bug	new	Internationalization	3.1	Normal		i18n unquote	Johannes Maron	Accepted	0	0	0	0	1	0
