]> git.openstreetmap.org Git - rails.git/commit
Make sure all forms have the correct authenticity token
authorTom Hughes <tom@compton.nu>
Fri, 25 Nov 2011 09:41:15 +0000 (09:41 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 25 Nov 2011 09:41:15 +0000 (09:41 +0000)
commit5db8031c237918a5339dcf54ee581afec492e6cb
tree58f2e8e7192c02167c2064cf7784741ebc9538b3
parent64030a40ac98f5420e77cdb672dd428f22bbffd4
Make sure all forms have the correct authenticity token

A cached page may include forms, which will then have the wrong
authenticity token, so after the page has finished loading we fix
up those tokens using the one from the meta tags which will always
be correct as we never cache the layout.
app/views/layouts/site.html.erb