#32345: i18n.set_language unquotes next_url and produces wrong url for url
params
containing "&" character
-------------------------------------+-------------------------------------
Reporter: Sebastian Kapunkt | Owner: Sandro
| Covo
Type: Bug | Status: assigned
Component: | Version: 3.1
Internationalization |
Severity: Normal | Resolution:
Keywords: i18n unquote | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sandro Covo):
* has_patch: 0 => 1
Comment:
I created a pull request with my changes here:
[https://github.com/django/django/pull/13884]
They solve the issue of preserving the encoded & in the URL, but I didn't
really see a connection of the testcase from #26466 with the issue that
was described there, but maybe this was fixed through another change to
reverse or translate_url. I added a quoted & and an unquoted & to the
test, so for an url in the form of {{{some%26thing&another%26thing}}} is
preserved.
--
Ticket URL: <https://code.djangoproject.com/ticket/32345#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/074.161dcace0f48ede66a93b8310222e5cb%40djangoproject.com.