warning -> warn
This commit is contained in:
parent
c0ae414e8f
commit
e7fb967d55
|
@ -9,7 +9,7 @@ class CommentsController < ApplicationController
|
||||||
|
|
||||||
def create
|
def create
|
||||||
unless request.xhr?
|
unless request.xhr?
|
||||||
logger.warning 'attack action detected'
|
logger.warn "attack action detected: #{params}"
|
||||||
redirect_to root_path
|
redirect_to root_path
|
||||||
end
|
end
|
||||||
cookies[:name] = comment_params[:name]
|
cookies[:name] = comment_params[:name]
|
||||||
|
|
Loading…
Reference in New Issue