Django

Code

Ticket #3157 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[patch] error messge in csrf protection is not valid XHTML

Reported by: mir@noris.de Assigned to: adrian
Milestone: Component: Contrib apps
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The error message that contrib.csrf outputs when it detects manipulation is not valid XHTML. If you use application/xhtml+xml as content type, this will result in rendering an xhtml syntax error message with a xhtml capable browser like firefox 1.5+.

Attachments

csrf_xhtml.diff (0.6 kB) - added by mir@noris.de on 12/18/06 07:21:43.
patch

Change History

12/18/06 07:21:43 changed by mir@noris.de

  • attachment csrf_xhtml.diff added.

patch

12/18/06 09:37:53 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [4225]) Fixed #3157 -- Made error message XHTML-friendly in CSRF middleware. Thanks, mir@noris.de


Add/Change #3157 ([patch] error messge in csrf protection is not valid XHTML)




Change Properties
Action