lib/brakeman/processors/template_alias_processor.rb in brakeman-4.4.0 vs lib/brakeman/processors/template_alias_processor.rb in brakeman-4.5.0
- old
+ new
@@ -25,12 +25,12 @@
if @called_from.include_template? name
Brakeman.debug "Skipping circular render from #{@template.name} to #{name}"
return
end
- super name, args, @called_from.dup.add_template_render(@template.name, line, @file_name)
+ super name, args, @called_from.dup.add_template_render(@template.name, line, @file_name), line
else
- super name, args, Brakeman::RenderPath.new.add_template_render(@template.name, line, @file_name)
+ super name, args, Brakeman::RenderPath.new.add_template_render(@template.name, line, @file_name), line
end
end
#Determine template name
def template_name name