diff --git a/django/contrib/csrf/middleware.py b/django/contrib/csrf/middleware.py index 4c00461b898..dee6f4f4292 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