Menu

Commit [r4254]  Maximize  Restore  History

Improvements to the CSRF protection:

* Only pass the body of `POST` requests to `cgi.FieldStorage` if the request content type corresponds to a form submission.
* Only require the form token for `POST` requests with a content type corresponding to a form submission, fixing XML-RPC (#4122) etc. in a more generic fashion (compared to [4243]).
* The form token cookie is no longer persistent; it is now deleted when the browser session is closed/reset.

cmlenz 2006-11-13

changed /trunk/trac/web/api.py
changed /trunk/trac/web/main.py
/trunk/trac/web/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/web/main.py Diff Switch to side-by-side view
Loading...