diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2015-11-11 20:10:55 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-11-24 11:31:10 -0500 |
| commit | 9f83fc2f66f5a0bac7c291aec55df66050bb6991 (patch) | |
| tree | 45b752afc60b120d10fa409d60cee274e2176375 /tests | |
| parent | 581b9e504752840fd7716e44c5c30292636355a4 (diff) | |
[1.8.x] Fixed a settings leak possibility in the date template filter.
This is a security fix.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): '<input id="id_date_added" name="date_added" type="hidden" value="31.12.2009 06:00:00" />; <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(TestCase): |
