Django

Code

Changeset 4225

Show
Ignore:
Timestamp:
12/18/06 09:37:52 (2 years ago)
Author:
adrian
Message:

Fixed #3157 -- Made error message XHTML-friendly in CSRF middleware. Thanks, mir@noris.de

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/csrf/middleware.py

    r2900 r4225  
    1212import itertools 
    1313 
    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>' 
    1515 
    1616_POST_FORM_RE = \