mirror of
https://github.com/django/django.git
synced 2025-02-08 08:26:13 +00:00
Refs CVE-2020-13254 -- Fixed cache.tests when KEY_PREFIX is defined.
Follow up to 2c82414914ae6476be5a166be9ff49c24d0d9069.
This commit is contained in:
parent
54975780ee
commit
229c9c6653
2
tests/cache/tests.py
vendored
2
tests/cache/tests.py
vendored
@ -1275,7 +1275,7 @@ class BaseMemcachedTests(BaseCacheTests):
|
||||
Whilst other backends merely warn, memcached should raise for an
|
||||
invalid key.
|
||||
"""
|
||||
msg = expected_warning.replace(key, ':1:%s' % key)
|
||||
msg = expected_warning.replace(key, cache.make_key(key))
|
||||
with self.assertRaisesMessage(InvalidCacheKey, msg):
|
||||
cache.set(key, 'value')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user