summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2012-07-06 15:29:23 +0100
committerLuke Plant <L.Plant.98@cantab.net>2012-07-06 15:33:29 +0100
commit2ba4278cb38f1346d70cf427bbeac71a4d1dc5ad (patch)
tree6b3e2969b0566b605d9b6e082b4555434ef27532
parent4c417cc9ebd65595128b81cdddc9ea8293cbcbbe (diff)
Fixed #18484 - 'display:none' on CSRF token div is redundant and causes problems with some browsers
Thanks to hedleyroos for the report
-rw-r--r--django/template/defaulttags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
index 52d886a5a1..fb45fe722e 100644
--- a/django/template/defaulttags.py
+++ b/django/template/defaulttags.py
@@ -47,7 +47,7 @@ class CsrfTokenNode(Node):
if csrf_token == 'NOTPROVIDED':
return format_html("")
else:
- return format_html("<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='{0}' /></div>", csrf_token)
+ return format_html("<div><input type='hidden' name='csrfmiddlewaretoken' value='{0}' /></div>", csrf_token)
else:
# It's very probable that the token is missing because of
# misconfiguration, so we raise a warning