1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #31291 -- Renamed salt to mask for CSRF tokens.

This commit is contained in:
Ram Rachum
2020-02-25 15:16:19 +02:00
committed by GitHub
parent 271fdab8b7
commit 5b09354954
5 changed files with 26 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
from django.http import HttpRequest
from django.middleware.csrf import _compare_salted_tokens as equivalent_tokens
from django.middleware.csrf import _compare_masked_tokens as equivalent_tokens
from django.template.context_processors import csrf
from django.test import SimpleTestCase