Skip to content

Commit

Permalink
HTTPS all the things, per review.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jul 30, 2018
1 parent ef8de51 commit 16ff033
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/conf.py
Expand Up @@ -180,12 +180,12 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'http://docs.python.org/': None,
'http://zopebrowser.readthedocs.io/en/latest': None,
'http://zopecomponent.readthedocs.io/en/latest': None,
'http://zopeinterface.readthedocs.io/en/latest': None,
'http://zopepublisher.readthedocs.io/en/latest': None,
'http://zopeschema.readthedocs.io/en/latest': None,
'https://docs.python.org/': None,
'https://zopebrowser.readthedocs.io/en/latest': None,
'https://zopecomponent.readthedocs.io/en/latest': None,
'https://zopeinterface.readthedocs.io/en/latest': None,
'https://zopepublisher.readthedocs.io/en/latest': None,
'https://zopeschema.readthedocs.io/en/latest': None,
}

extlinks = {
Expand Down
13 changes: 7 additions & 6 deletions src/zope/formlib/form.rst
Expand Up @@ -1982,12 +1982,13 @@ methods are accepted::
Prevent Cross-site Request Forgery (CSRF) attacks
-------------------------------------------------

See also: http://en.wikipedia.org/wiki/Cross-site_request_forgery.

The CSRF protection in zope.formlib assumes the attacker cannot get hold of
information stored in a cookie that is send to the domain handling the form
submit. zope.formlib verifies that the token as sent with the cookie is
identical to the value as sent with the form (as a hidden input field).
The `cross-site request forgery
<https://en.wikipedia.org/wiki/Cross-site_request_forgery.>`_
protection in zope.formlib assumes the attacker cannot get hold of
information stored in a cookie that is send to the domain handling the
form submit. zope.formlib verifies that the token as sent with the
cookie is identical to the value as sent with the form (as a hidden
input field).

zope.formlib will set a random token in the cookie when first accessing the
form. Any subsequent form rendering and submit handling will use the token
Expand Down

0 comments on commit 16ff033

Please sign in to comment.