diff --git a/django/contrib/csrf/middleware.py b/django/contrib/csrf/middleware.py
a
|
b
|
import md5
|
11 | 11 | import re |
12 | 12 | import itertools |
13 | 13 | |
14 | | _ERROR_MSG = "<h1>403 Forbidden</h1><p>Cross Site Request Forgery detected. Request aborted.</p>" |
| 14 | _ERROR_MSG = '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><body><h1>403 Forbidden</h1><p>Cross Site Request Forgery detected. Request aborted.</p></body></html>' |
15 | 15 | |
16 | 16 | _POST_FORM_RE = \ |
17 | 17 | re.compile(r'(<form\W[^>]*\bmethod=(\'|"|)POST(\'|"|)\b[^>]*>)', re.IGNORECASE) |