django/django — pull request #522 by EmilStenstrom (2012-11-17 12:19:16+00:00)
Title: Fix bug [#19277]: LocaleMiddleware permanent redirects

https://code.djangoproject.com/ticket/19277#comment:3

"We're sprinting (Stockholm) at the moment and plan to solve this bug like this:

Instead of setting a status_code attribute, we would like to use a redirect_class. The reason for this is that HttpResponseRedirectBase has built in protection against unsafe protocol redirections. If we use a HttpResponse object and let the user supply their own status code they will probably miss that security issue, which would be a shame."

Authors: @pelme and @EmilStenstrom