summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2015-11-11 20:10:55 +0100
committerTim Graham <timograham@gmail.com>2015-11-24 11:20:29 -0500
commit316bc3fc9437c5960c24baceb93c73f1939711e4 (patch)
tree8462c5e6e8d0f165fae80b6282c2393bef0bb102 /tests
parent710e11d076b9e5ef3e3b486dfb70bb55b788691c (diff)
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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index 1de7b11b81..fd332c596e 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -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):