From 40e5cde1c55d4e096fb039daef674f1754cacd5c Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 27 Aug 2008 20:29:58 +0000 Subject: [PATCH] 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 --- django/middleware/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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