mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Used double quotation marks for csrf form element.
This commit is contained in:
committed by
Carlton Gibson
parent
9e86185936
commit
98019df855
@@ -54,7 +54,7 @@ class CsrfTokenNode(Node):
|
||||
if csrf_token == 'NOTPROVIDED':
|
||||
return format_html("")
|
||||
else:
|
||||
return format_html("<input type='hidden' name='csrfmiddlewaretoken' value='{}'>", csrf_token)
|
||||
return format_html('<input type="hidden" name="csrfmiddlewaretoken" value="{}">', csrf_token)
|
||||
else:
|
||||
# It's very probable that the token is missing because of
|
||||
# misconfiguration, so we raise a warning
|
||||
|
||||
Reference in New Issue
Block a user