From 2540d5cb72ec8fda8802136ad1e3ff49193a8fa5 Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Fri, 7 Feb 2014 09:29:27 +0100 Subject: [PATCH] Only store original template outputs --- lib/brakeman/processors/template_processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/brakeman/processors/template_processor.rb b/lib/brakeman/processors/template_processor.rb index aea03526..18d35490 100644 --- a/lib/brakeman/processors/template_processor.rb +++ b/lib/brakeman/processors/template_processor.rb @@ -48,7 +48,7 @@ class Brakeman::TemplateProcessor < Brakeman::BaseProcessor #Adds output to the list of outputs. def process_output exp exp.value = process exp.value - @current_template[:outputs] << exp + @current_template[:outputs] << exp unless exp.original_line exp end -- GitLab