Kaydet (Commit) 40e5cde1 authored tarafından Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss

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
üst 615ed200
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment