Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #7379: fixed a subtle corner case involving URL encoding in `Co…

…mmonMiddleware`

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 40e5cde1c55d4e096fb039daef674f1754cacd5c 1 parent 615ed20
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/middleware/common.py
2  django/middleware/common.py
View
@@ -80,7 +80,7 @@ def process_request(self, request):
else:
newurl = urlquote(new_url[1])
if request.GET:
- newurl += '?' + request.GET.urlencode()
+ newurl += '?' + request.META['QUERY_STRING']
return http.HttpResponsePermanentRedirect(newurl)
return None
Please sign in to comment.
Something went wrong with that request. Please try again.