Opened 17 years ago

Last modified 13 years ago

#7379 closed

middleware redirects in common.py don't pass the same URL parameters correctly. — at Version 2

Reported by: John Matthew <john@…> Owned by: nobody
Component: HTTP handling Version: dev
Severity: Keywords: url redirect
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Ramiro Morales)

line 83 of django/middleware/common.py should be:

    newurl += '?' + request.META['QUERY_STRING']

instead of:

    newurl += '?' + request.GET.urlencode()

That will ensure that the query parameters included in the redirect url are
identical to what was included in the original url.

Change History (2)

comment:1 by John Matthew <john@…>, 17 years ago

The full google group conversation that created this ticket

http://groups.google.com/group/django-users/browse_thread/thread/fc47edb1b9f8ec8f#

comment:2 by Ramiro Morales, 17 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top