Fixed #27363 -- Replaced unsafe redirect in SessionMiddleware with SuspiciousOperation.

This commit is contained in:
Andrew Nester 2016-10-25 14:23:14 +03:00 committed by Tim Graham
parent 9c2e1ad6a5
commit 1ce04bcce0
3 changed files with 20 additions and 14 deletions

View file

@ -26,3 +26,7 @@ Bugfixes
* Prevented ``i18n_patterns()`` from using too much of the URL as the language
to fix a use case for ``prefix_default_language=False`` (:ticket:`27063`).
* Replaced a possibly incorrect redirect from ``SessionMiddleware`` when a
session is destroyed in a concurrent request with a ``SuspiciousOperation``
to indicate that the request can't be completed (:ticket:`27363`).