Add post parameters so plugins like akismet can use it for spam

prevention.
This commit is contained in:
Robin Ward 2015-01-29 13:09:35 -05:00
parent 1f40807001
commit f028b51620
1 changed files with 5 additions and 0 deletions

View File

@ -420,6 +420,11 @@ class PostsController < ApplicationController
result[f] = params[f] if params.has_key?(f)
end
# Stuff we can use in spam prevention plugins
result[:ip_address] = request.remote_ip
result[:user_agent] = request.user_agent
result[:referrer] = request.env["HTTP_REFERER"]
result
end