mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed a settings leak possibility in the date template filter.
This is a security fix.
This commit is contained in:
committed by
Tim Graham
parent
710e11d076
commit
316bc3fc94
@@ -1249,6 +1249,9 @@ class FormattingTests(SimpleTestCase):
|
||||
'<input id="id_cents_paid" name="cents_paid" type="hidden" value="59,47" />'
|
||||
)
|
||||
|
||||
def test_format_arbitrary_settings(self):
|
||||
self.assertEqual(get_format('DEBUG'), 'DEBUG')
|
||||
|
||||
|
||||
class MiscTests(SimpleTestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user