Fixed #18484 -- Removed the div around the csrf token input

This commit is contained in:
Claude Paroz 2012-10-13 11:30:09 +02:00
parent 22742e4ac4
commit fa2e28ccc4
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class CsrfTokenNode(Node):
if csrf_token == 'NOTPROVIDED':
return format_html("")
else:
return format_html("<div><input type='hidden' name='csrfmiddlewaretoken' value='{0}' /></div>", csrf_token)
return format_html("<input type='hidden' name='csrfmiddlewaretoken' value='{0}' />", csrf_token)
else:
# It's very probable that the token is missing because of
# misconfiguration, so we raise a warning