Commit fa2e28cc authored by Claude Paroz's avatar Claude Paroz
Browse files

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

parent 22742e4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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