aboutsummaryrefslogtreecommitdiffstats
path: root/lib/attachment_to_html
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-09 18:39:23 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-10 12:09:19 +0100
commit24a91a3dc095a0d55cb6b4ddf3c6a68726228f54 (patch)
treed5caef54c33eb13a1d5a53a24294ad12d802495a /lib/attachment_to_html
parentaf4e1ad526804ae15df49221668e00f5f0389085 (diff)
Use GET for search forms, not POST.
Now that we use global CSRF authenticity checks, searches were logging logged-in users out as the form is an HTML form, not a Rails-generated form with a CSRF token. So form submission raised an InvalidAuthenticityToken error and reset their session. We could generate the form in Rails, but we also want to minimise the number of non-logged in people who have a session cookie, so that varnish can cache pages extensively. So we don't want to put the CSRF token for the search form in everyone's session.
Diffstat (limited to 'lib/attachment_to_html')
0 files changed, 0 insertions, 0 deletions