annotate themes/default/images/atom/README @ 956:dabecab10faa

server (pages): impleted CSRF protection: A basic CSRF protection has been implemented using CSRF token. The token is created on session creation, and checked on data post. The process should be fully automatic, and a hidden field is added in forms in sat_templates when csrf_token is present in template data (require to import input/form.html with context). If token is wrong on absent, an unauthorized error page is returned (and client ip is logged). Also don't use anymore inlineCallbacks in _on_data_post, as StopIteration exception are catched by inlineCallbacks, resulting in bad behaviour. As a further security, getPostedDate raise a KeyError instead of StopIteration is a specific key is looked for and missing. Added HTTP_SEE_OTHER status code in constants.
author Goffi <goffi@goffi.org>
date Mon, 10 Jul 2017 19:10:31 +0200
parents 3eb26b269539
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
842
3eb26b269539 themes (default): display a link to the atom feed below the static blog entries
souliane <souliane@mailoo.org>
parents:
diff changeset
1 The work in this directory is licenced under a MPL/GPL/LGPL tri-license:
3eb26b269539 themes (default): display a link to the atom feed below the static blog entries
souliane <souliane@mailoo.org>
parents:
diff changeset
2 - MPL 1.1
3eb26b269539 themes (default): display a link to the atom feed below the static blog entries
souliane <souliane@mailoo.org>
parents:
diff changeset
3 - GPL 2 or later
3eb26b269539 themes (default): display a link to the atom feed below the static blog entries
souliane <souliane@mailoo.org>
parents:
diff changeset
4 - LGPL 2 or later
3eb26b269539 themes (default): display a link to the atom feed below the static blog entries
souliane <souliane@mailoo.org>
parents:
diff changeset
5
3eb26b269539 themes (default): display a link to the atom feed below the static blog entries
souliane <souliane@mailoo.org>
parents:
diff changeset
6 Originally distributed by the Mozilla Foundation
3eb26b269539 themes (default): display a link to the atom feed below the static blog entries
souliane <souliane@mailoo.org>
parents:
diff changeset
7 Source: http://www.feedicons.com