From c26553c4f91a2a0ac1ca8d173888c414fc9cecda Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Thu, 11 May 2006 21:55:53 +0000 Subject: [PATCH] Fixed #1827 - added 'id' attribute to generated CSRF hidden field. Good call, Ian Holsman. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2899 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/csrf/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/csrf/middleware.py b/django/contrib/csrf/middleware.py index 4c00461b89..dee6f4f429 100644 --- a/django/contrib/csrf/middleware.py +++ b/django/contrib/csrf/middleware.py @@ -78,7 +78,7 @@ class CsrfMiddleware(object): # Modify any POST forms extra_field = "
" + \ - "
" response.content = _POST_FORM_RE.sub('\\1' + extra_field, response.content) return response