django1/django
Shai Berger 5112e65ef2 Fixed #20869 -- made CSRF tokens change every request by salt-encrypting them
Note that the cookie is not changed every request, just the token retrieved
by the `get_token()` method (used also by the `{% csrf_token %}` tag).

While at it, made token validation strict: Where, before, any length was
accepted and non-ASCII chars were ignored, we now treat anything other than
`[A-Za-z0-9]{64}` as invalid (except for 32-char tokens, which, for
backwards-compatibility, are accepted and replaced by 64-char ones).

Thanks Trac user patrys for reporting, github user adambrenecki
for initial patch, Tim Graham for help, and Curtis Maloney,
Collin Anderson, Florian Apolloner, Markus Holtermann & Jon Dufresne
for reviews.
2016-05-19 05:02:19 +03:00
..
apps Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 2016-04-29 13:06:32 -04:00
bin Removed bin/unique-messages.py 2015-02-06 08:47:38 -05:00
conf Updated translation catalogs 2016-05-17 23:21:35 +02:00
contrib Fixed #25774 -- Refactor datetime expressions into public API 2016-05-18 20:14:58 +10:00
core Refs #26601 -- Added a warning if both MIDDLEWARE AND MIDDLEWARE_CLASSES are set. 2016-05-17 07:24:45 -04:00
db Fixed #26620 -- Made Model.refresh_from_db() fail when passed unknown kwargs. 2016-05-18 09:27:23 -04:00
dispatch Fixed E128 flake8 warnings in django/. 2016-04-08 09:51:06 -04:00
forms Refs #24227 -- Removed ManyToManyField special casing in model_to_dict(). 2016-05-11 10:12:59 -04:00
http Fixed #21231 -- Enforced a max size for GET/POST values read into memory. 2016-05-12 10:17:52 -04:00
middleware Fixed #20869 -- made CSRF tokens change every request by salt-encrypting them 2016-05-19 05:02:19 +03:00
template Fixed #24046 -- Deprecated the "escape" half of utils.safestring. 2016-05-10 12:46:47 -04:00
templatetags Fixed E128 flake8 warnings in django/. 2016-04-08 09:51:06 -04:00
test Moved the AUTH_USER_MODEL setting changed receiver. 2016-05-18 09:56:29 -04:00
urls Fixed #25933 -- Allowed an unprefixed default language in i18n_patterns(). 2016-03-08 08:14:10 -05:00
utils Fixed #26601 -- Improved middleware per DEP 0005. 2016-05-17 07:22:22 -04:00
views Fixed #26601 -- Improved middleware per DEP 0005. 2016-05-17 07:22:22 -04:00
__init__.py Fixed #26013 -- Moved django.core.urlresolvers to django.urls. 2015-12-31 14:21:29 -05:00
__main__.py Fixed #24857 -- Added "python -m django" entry point. 2015-09-07 19:54:32 -04:00
shortcuts.py Fixed #10532 -- Relaxed hard-type checking in get_object/list_or_404 shortcuts 2016-03-29 21:34:20 +02:00