提交 ffcc6172 编写于 作者: C Carlos Antonio da Silva

Merge pull request #14258 from shuhei/fix_deep_munge_log

Add spaces to the log message of ActionController:: LogSubscriber#deep_munge
......@@ -54,9 +54,9 @@ def unpermitted_parameters(event)
end
def deep_munge(event)
message = "Value for params[:#{event.payload[:keys].join('][:')}] was set"\
"to nil, because it was one of [], [null] or [null, null, ...]."\
"Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation"\
message = "Value for params[:#{event.payload[:keys].join('][:')}] was set "\
"to nil, because it was one of [], [null] or [null, null, ...]. "\
"Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation "\
"for more information."\
debug(message)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册