Skip to content

Commit

Permalink
Fixed #7379: fixed a subtle corner case involving URL encoding in `Co…
Browse files Browse the repository at this point in the history
…mmonMiddleware`

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Aug 27, 2008
1 parent 615ed20 commit 40e5cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/middleware/common.py
Expand Up @@ -80,7 +80,7 @@ def process_request(self, request):
else: else:
newurl = urlquote(new_url[1]) newurl = urlquote(new_url[1])
if request.GET: if request.GET:
newurl += '?' + request.GET.urlencode() newurl += '?' + request.META['QUERY_STRING']
return http.HttpResponsePermanentRedirect(newurl) return http.HttpResponsePermanentRedirect(newurl)


return None return None
Expand Down

0 comments on commit 40e5cde

Please sign in to comment.