summaryrefslogtreecommitdiff
path: root/django/middleware/common.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-08-27 20:29:58 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-08-27 20:29:58 +0000
commit40e5cde1c55d4e096fb039daef674f1754cacd5c (patch)
treeadf61e2a8c9e1b8fab2e4270fac56a78504c34a7 /django/middleware/common.py
parent615ed200060ef6571099886cebb7503078a9bfdf (diff)
downloaddjango-40e5cde1c55d4e096fb039daef674f1754cacd5c.tar.gz
Fixed #7379: fixed a subtle corner case involving URL encoding in `CommonMiddleware`
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/middleware/common.py')
-rw-r--r--django/middleware/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/middleware/common.py b/django/middleware/common.py
index 270ab995bb..a45ef1e7b5 100644
--- a/django/middleware/common.py
+++ b/django/middleware/common.py
@@ -80,7 +80,7 @@ class CommonMiddleware(object):
else:
newurl = urlquote(new_url[1])
if request.GET:
- newurl += '?' + request.GET.urlencode()
+ newurl += '?' + request.META['QUERY_STRING']
return http.HttpResponsePermanentRedirect(newurl)
return None