Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored August 27, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/middleware/common.py
2  django/middleware/common.py
@@ -80,7 +80,7 @@ def process_request(self, request):
80 80
                 else:
81 81
                     newurl = urlquote(new_url[1])
82 82
                 if request.GET:
83  
-                    newurl += '?' + request.GET.urlencode()
  83
+                    newurl += '?' + request.META['QUERY_STRING']
84 84
                 return http.HttpResponsePermanentRedirect(newurl)
85 85
 
86 86
         return None

0 notes on commit 40e5cde

Please sign in to comment.
Something went wrong with that request. Please try again.