summaryrefslogtreecommitdiff
path: root/django/middleware/common.py
diff options
context:
space:
mode:
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