aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/comment_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2011-02-28 13:21:32 +0000
committerLouise Crow <louise.crow@gmail.com>2011-02-28 13:21:32 +0000
commit4cc2cf2a6d935adfd263ea4fd7791a6d84f704da (patch)
tree9733899634a7d71c625c40ae8ae60a559f4d7767 /app/controllers/comment_controller.rb
parentfe8e25164126b2c792b5b6a59c72b31b26bce64d (diff)
Add CSRF protection on state changing actions. Use default handler handle_unverified_request which clears session.
Diffstat (limited to 'app/controllers/comment_controller.rb')
-rw-r--r--app/controllers/comment_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb
index d5f8f89fb..4a0661f34 100644
--- a/app/controllers/comment_controller.rb
+++ b/app/controllers/comment_controller.rb
@@ -8,6 +8,7 @@
class CommentController < ApplicationController
before_filter :check_read_only, :only => [ :new ]
+ protect_from_forgery :only => [ :new ]
def new
if params[:type] == 'request'