Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/brakeman/processors/lib/render_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def process_render exp
end
when :default
begin
process_template template_name, exp[3], nil, exp.line
# exp[2] is either the action name (from controller) or :default when no explicit arg
name_arg = (exp[2].nil? || exp[2] == :default) ? nil : exp[2]
process_template template_name(name_arg), exp[3], nil, exp.line
rescue ArgumentError
Brakeman.debug "Problem processing render: #{exp}"
end
Expand Down