diff --git a/django/middleware/common.py b/django/middleware/common.py index 270ab995bb0..a45ef1e7b5c 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