Peter Jones 2a986200b9 Bug: Earlier Check for Session in Forgery Protection
The session is used by the form_authenticity_token method before it is
tested to be valid.  This patch moves a few lines around so that the
session is validated first.

Without this patch, if you try to use forgery protection with sessions
turned off, you get this exception message:

  undefined method `session_id' for {}:Hash

The patch includes a test that can be used to see this behavior before
the request_forgery_protection.rb file is patched to fix it.
2008-05-11 13:27:34 -05:00
2008-05-09 10:40:50 +01:00
2008-05-09 10:40:50 +01:00
2008-05-09 10:40:50 +01:00
2008-05-09 10:40:50 +01:00
2008-05-09 10:40:50 +01:00
2008-04-10 22:09:13 -05:00
Description
No description provided
85 MiB
Languages
Ruby 97.9%
CSS 1.5%
HTML 0.5%