From 9f83fc2f66f5a0bac7c291aec55df66050bb6991 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Wed, 11 Nov 2015 20:10:55 +0100 Subject: [1.8.x] Fixed a settings leak possibility in the date template filter. This is a security fix. --- tests/i18n/tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 788a6dec89..b06d73179f 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -927,6 +927,9 @@ class FormattingTests(TestCase): '; ' ) + def test_format_arbitrary_settings(self): + self.assertEqual(get_format('DEBUG'), 'DEBUG') + class MiscTests(TestCase): -- cgit v1.3