Author: jacob
Date: 2008-08-27 15:29:58 -0500 (Wed, 27 Aug 2008)
New Revision: 8635

Modified:
   django/trunk/django/middleware/common.py
Log:
Fixed #7379: fixed a subtle corner case involving URL encoding in 
`CommonMiddleware`

Modified: django/trunk/django/middleware/common.py
===================================================================
--- django/trunk/django/middleware/common.py    2008-08-27 20:29:45 UTC (rev 
8634)
+++ django/trunk/django/middleware/common.py    2008-08-27 20:29:58 UTC (rev 
8635)
@@ -80,7 +80,7 @@
                 else:
                     newurl = urlquote(new_url[1])
                 if request.GET:
-                    newurl += '?' + request.GET.urlencode()
+                    newurl += '?' + request.META['QUERY_STRING']
                 return http.HttpResponsePermanentRedirect(newurl)
 
         return None


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to