Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1827 - added 'id' attribute to generated CSRF hidden field. Go…

…od call, Ian Holsman.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2899 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c26553c4f91a2a0ac1ca8d173888c414fc9cecda 1 parent c427479
Luke Plant authored May 11, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/csrf/middleware.py
2  django/contrib/csrf/middleware.py
@@ -78,7 +78,7 @@ def process_response(self, request, response):
78 78
            
79 79
             # Modify any POST forms
80 80
             extra_field = "<div style='display:none;'>" + \
81  
-                "<input type='hidden' name='csrfmiddlewaretoken' value='" + \
  81
+                "<input type='hidden' id='csrfmiddlewaretoken' name='csrfmiddlewaretoken' value='" + \
82 82
                 csrf_token + "' /></div>"
83 83
             response.content = _POST_FORM_RE.sub('\\1' + extra_field, response.content)
84 84
         return response

0 notes on commit c26553c

Please sign in to comment.
Something went wrong with that request. Please try again.